Unicode literals
Unicode literals
- Subject: Unicode literals
- From: Helmut Fuchs <email@hidden>
- Date: Tue, 25 Sep 2001 23:55:38 +0200
I don't understand why the following results in an empty string:
<<data utxt0041>> & ("a" as Unicode text) as string
--> ""
But
("A" as Unicode text) & ("a" as Unicode text) as string
--> "Aa"
and even
(run script "<<data utxt0041>>") & ("a" as Unicode text) as string
--> "Aa"
What's happening here? Anyone got an idea how I can get around the
"run script"?
TIA,
Helmut
P.S. Using AppleScript 1.6, MacOS 9.1 on a PBG4
P.P.S. In case you're wondering why I bother:
The first syntax would be really handy to replace characters that
can't be represented on the Mac, like in the following:
set AppleScript's text item delimiters to {<<data utxt00b2>>}
set tmp to text items of whateverUnicodeText
set AppleScript's text item delimiters to {"^2" as Unicode text}
set whateverUnicodeText to tmp as Unicode text