Re: unicode escape sequences in AppleScript strings
Re: unicode escape sequences in AppleScript strings
- Subject: Re: unicode escape sequences in AppleScript strings
- From: Matthew Stuckwisch <email@hidden>
- Date: Tue, 14 Jan 2003 19:02:47 -0600
El martes, 14 ener, 2003, a las 16:46 US/Central,
email@hidden escribis:
I would love that we could enter some UTF-8 into an AppleScript
string variable - which is how I interpret what you're trying to
achieve.
I'd like this too ;)
Oh, right. If it's okay to use a little bit of perl through do shell
scripts, Chris also gave me a quick and dirty little workaround:
===BEGIN QUOTED TEXT===
Until something better comes along, try this:
set d to 8482
do shell script "perl -e 'use utf8; print chr(" & d & ")'"
--> ""
set s to ""
do shell script "perl -e 'use utf8; print ord(\"" & s & "\")'"
--> 8482
Monstrously slow for a large number of characters, but useful in a
pinch.
===END QUOTED TEXT===
Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
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.