• 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: handling Unicode text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: handling Unicode text


  • Subject: Re: handling Unicode text
  • From: Bill <email@hidden>
  • Date: Sun, 11 Jan 2004 19:55:48 +0800

Does AppleScript handle Unicode text that has no
ASCII equivalent (e.g. Japanese characters)? I
get the contents of a file using the following
script:

Donald,

You may try this one:

-- class uft8 is a raw apple event, -- due to our lovely list server, it may be appeared as garbled text,
-- it is preceded by option \
-- and followed by shift option \

read (choose file) as +class utf8;


Provided you have the necessary fonts, the result should show correctly in SE result window; eh, most of the time :)

In my experience, the read & write Standard Additions command need this raw event to handle unicode text properly.

eg.
read as +class utf8;

write as +class utf8;

Wanna to try another method?


bill
_______________________________________________
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.

  • Prev by Date: Re: Bug in Image Events (?)
  • Next by Date: Rép : Selection in iPhoto
  • Previous by thread: Re: handling Unicode text
  • Next by thread: Re: handling Unicode text
  • Index(es):
    • Date
    • Thread