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

Re: Re: unicode escape sequences in AppleScript strings


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

El martes, 14 ener, 2003, a las 12:57 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 ;)

Unfortunately, AFAIK, there is no way of filling an AppleScript
variable with UTF-8 (let alone 16) from scratch - you've got to
export Unicode from a Unicode-able app or from a file.

In private messages with a certain AppleScript engineer (*coughChrisNcough*) I found out a little bit about this...I hope no one minds me quoting:

============
Me:
I guess there I was thinking about "ASCII character X" and there being no Unicode equivalent for that command [1], and assuming that character would refer back to ASCII .
[1] Pretty please? Pretty please with a sugar-coated Apple? :P

ChrisN:
Maybe. :-) I'm loathe to add two new scripting addition commands for this (because of the semantics of "ASCII character/number", it's impossible to extend them to Unicode and have it work right), but on the other hand, it's likely to be a while until I can implement the better solution I have in mind.
============

I suppose that if the AppleScript Text Suite was to work on Unicode
text, then it would work very slowly since there is no longer a
one-to-one correspondance between bytes and characters in Unicode, so
(e.g.) getting "character n" of some string would really imply
reading the whole data from the first byte.

I recently reworked my AS Studio app to handle Unique such that I could work better with Arabic, Russian, Runic, and Korean texts. My parser isn't that much slower, just a little bit. It's nothing significantly huge.

(I would like to be wrong)

Define "very slowly" ;) I know the speed freaks on the list here would die with the speed change, but for anyone else, it's relatively imperceptible.

So basically, it might come, but not any time in the near future. I hope I'm not going to set Chris up for an inquisition on this one though ;)
_______________________________________________
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: Removing every instance of a substring
  • Next by Date: Re: Searching a volume
  • Previous by thread: Re: unicode escape sequences in AppleScript strings
  • Next by thread: Re: unicode escape sequences in AppleScript strings
  • Index(es):
    • Date
    • Thread