Unicode under MacOS 9? Sigh...
Unicode under MacOS 9? Sigh...
- Subject: Unicode under MacOS 9? Sigh...
- From: Helmut Fuchs <email@hidden>
- Date: Thu, 20 Sep 2001 23:09:38 +0200
Anybody ever tried something with AppleScript's unicode support?
I'm currently trying to do a lot with XML documents - which, per
definition, are encoded as Unicode. And now I'm stumbling over
Unicode characters $00B2 and $00B3, which to my knowledge map to
"superscript two" and "superscript three" (that's the unicode names
of those characters).
When converting these to strings they result in "greek capital letter
sigma" and "greek capital letter pi" in the Macintosh character set.
Which is odd. At least they should be converted to "2" and "3", if
they can't be represented (Apple Text Encoding Converters at least do
it like that).
Further investigation showed, that conversion of Unicode characters
above $0100 to strings fails for every character I tried. Either I
get an error message, or the translation is simply wrong (try $03a0
"greek capital letter pi" or $03a3 "greek capital letter sigma").
Is there anything I can do, or can I simply skip experimenting with
AppleScript's unicode "support"?
TIA,
Helmut