• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Producing Unicode-only characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: display dialog with icon bug
  • Next by Date: Re: curl ... file listings...
  • Previous by thread: Re: Producing Unicode-only characters
  • Next by thread: Re: Producing Unicode-only characters
  • Index(es):
    • Date
    • Thread