Re: handling Unicode text
Re: handling Unicode text
- Subject: Re: handling Unicode text
- From: Bill <email@hidden>
- Date: Sun, 11 Jan 2004 19:55:48 +0800
Does AppleScript handle Unicode text that has no
ASCII equivalent (e.g. Japanese characters)? I
get the contents of a file using the following
script:
Donald,
You may try this one:
-- class uft8 is a raw apple event,
-- due to our lovely list server, it may be appeared as garbled text,
-- it is preceded by option \
-- and followed by shift option \
read (choose file) as +class utf8;
Provided you have the necessary fonts, the result should show correctly
in SE result window; eh, most of the time :)
In my experience, the read & write Standard Additions command need this
raw event to handle unicode text properly.
eg.
read as +class utf8;
write as +class utf8;
Wanna to try another method?
bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.