0

正しく表示される Unicode テキストを含む「データ」フィールドがあります。そのチャンクをコピーして、「someData」という別のフィールドに入れたいと思います。

ボタンで次のスクリプトを試しました

on mouseUp
  put word 2 of line 1 of the unicodeText of field "data" into t
  set the unicodeText of field "someData" to t
end mouseUp

非 Unicode テキストはフィールド「someData」に正常に表示されますが、Unicode テキストは表示されません。

4

4 に答える 4

1

おそらく、UTF8エンコーディング、解析、再エンコーディングで逃げることができます

on mouseUp
    put word 2 of line 1 of uniDecode(the unicodeText of field "data","UTF8") into t
    set the unicodeText of field "someData" to uniEncode(t,"UTF8")
end mouseUp
于 2013-04-20T03:32:05.730 に答える