Re: Producing Unicode-only characters
Re: Producing Unicode-only characters
- Subject: Re: Producing Unicode-only characters
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 25 Oct 2005 10:40:39 -0400
On 10/25/05,
has <
email@hidden> wrote:
A
passable solution would be for Apple to add a 'unicode' command to
Standard Additions that takes a string containing %-escaped unicode
code points and returns a unicode value, allowing users to write stuff
like:
unicode "hello AB world"
Not ideal, but I reckon it'd be 'good enough'. Feel free to file a feature request on it.
Why invent new syntax with %? Other languages already allow
Unicode code points in string literals via backslash escapes; since
AppleScript already has borrowed some of C's backslash escapes, that
would seem to make more sense.
In Java the above would be "hello \u12AB world"; in Perl "hello
\x{12AB} world". The presence of such an escape in a
literal could cause its type to be Unicode text instead of string.
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden