• 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: unicode escape sequences in AppleScript strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode escape sequences in AppleScript strings


  • Subject: Re: unicode escape sequences in AppleScript strings
  • From: Matthew Stuckwisch <email@hidden>
  • Date: Tue, 14 Jan 2003 19:02:47 -0600

El martes, 14 ener, 2003, a las 16:46 US/Central, email@hidden escribis:

I would love that we could enter some UTF-8 into an AppleScript
string variable - which is how I interpret what you're trying to
achieve.

I'd like this too ;)

Oh, right. If it's okay to use a little bit of perl through do shell scripts, Chris also gave me a quick and dirty little workaround:

===BEGIN QUOTED TEXT===
Until something better comes along, try this:

set d to 8482
do shell script "perl -e 'use utf8; print chr(" & d & ")'"
--> ""

set s to ""
do shell script "perl -e 'use utf8; print ord(\"" & s & "\")'"
--> 8482

Monstrously slow for a large number of characters, but useful in a pinch.
===END QUOTED TEXT===


Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa}(esperNET / GamesNet) | [E-mail]{email@hidden}
_______________________________________________
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: Bill's new GUI
  • Next by Date: Re: open for access file pathstring with write permission
  • Previous by thread: Re: Re: unicode escape sequences in AppleScript strings
  • Next by thread: Re: unicode escape sequences in AppleScript strings
  • Index(es):
    • Date
    • Thread