• 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: julifos <email@hidden>
  • Date: Tue, 14 Jan 2003 09:28:42 +0100

> Is there a way to enter unicode escape sequences in a string in AppleScript.
>
> My first (and only) attempt was to use the standard escape mechanism
>
> set x to "my unicode string \u303d"
>
> where \u303d is a standard escape sequence for representing a unicode
> character in a non-unicode string. I get a compile error when trying to run
> this script. I looked in the AppleScript help system but found nothing. I
> looked in standard additions but found only ASCII calls. What am I missing?
>
> andy b

I don't know how to escape unicode stuff, but "\" is AppleScript's escape
character. That's because you get a compile-time error. Try escaping the
escape char:

set x to "my unicode string \\u303d"

--> *my unicode string \u303d*

JJ
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
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: Suppress Finder error messages
  • Next by Date: Re: Change properties in one applet from another
  • Previous by thread: Re: unicode escape sequences in AppleScript strings
  • Next by thread: Re: Re: unicode escape sequences in AppleScript strings
  • Index(es):
    • Date
    • Thread