Re: unicode escape sequences in AppleScript strings
Re: unicode escape sequences in AppleScript strings
- Subject: Re: unicode escape sequences in AppleScript strings
- From: julifos <email@hidden>
- Date: Tue, 14 Jan 2003 09:28:42 +0100
>
Is there a way to enter unicode escape sequences in a string in AppleScript.
>
>
My first (and only) attempt was to use the standard escape mechanism
>
>
set x to "my unicode string \u303d"
>
>
where \u303d is a standard escape sequence for representing a unicode
>
character in a non-unicode string. I get a compile error when trying to run
>
this script. I looked in the AppleScript help system but found nothing. I
>
looked in standard additions but found only ASCII calls. What am I missing?
>
>
andy b
I don't know how to escape unicode stuff, but "\" is AppleScript's escape
character. That's because you get a compile-time error. Try escaping the
escape char:
set x to "my unicode string \\u303d"
--> *my unicode string \u303d*
JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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.