• 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: Bad Characters from Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bad Characters from Unicode


  • Subject: Re: Bad Characters from Unicode
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 2 Oct 2007 15:39:40 -0500

I found this note ...
Applescript Sourcebook @ macscripter.net / What is the difference between "string", "text", "unicode text"...?
which describes how to get unicode from raw data.


And you can get very nice Unicode tables at
http://www.unicode.org/charts/

It works like this:

	set x to «data utxt____» as Unicode text

where ____ is four hex digits, will create a unicode character. If you want a string, use

	set x to «data utxt____________» as Unicode text

If you need a character in the range 0000 thru 007F, you can use

	set x to «data utf8__» as Unicode text

Question: Is there any way to coerce a character back to data, preferably as a decimal integer?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Bad Characters from Unicode
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Bad Characters from Unicode
  • Next by Date: Re: Bad Characters from Unicode
  • Previous by thread: Re: Bad Characters from Unicode
  • Next by thread: Re: Bad Characters from Unicode
  • Index(es):
    • Date
    • Thread