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

Unicode literals


  • Subject: Unicode literals
  • From: Helmut Fuchs <email@hidden>
  • Date: Tue, 25 Sep 2001 23:55:38 +0200

I don't understand why the following results in an empty string:
<<data utxt0041>> & ("a" as Unicode text) as string
--> ""

But
("A" as Unicode text) & ("a" as Unicode text) as string
--> "Aa"

and even
(run script "<<data utxt0041>>") & ("a" as Unicode text) as string
--> "Aa"

What's happening here? Anyone got an idea how I can get around the "run script"?

TIA,

Helmut

P.S. Using AppleScript 1.6, MacOS 9.1 on a PBG4
P.P.S. In case you're wondering why I bother:

The first syntax would be really handy to replace characters that can't be represented on the Mac, like in the following:

set AppleScript's text item delimiters to {<<data utxt00b2>>}
set tmp to text items of whateverUnicodeText
set AppleScript's text item delimiters to {"^2" as Unicode text}
set whateverUnicodeText to tmp as Unicode text


  • Prev by Date: ANNOUNCE: Script Debugger 3.0 supports Mac OS X
  • Next by Date: Re: BBEdit - test result of Find
  • Previous by thread: Re: ANNOUNCE: Script Debugger 3.0 supports Mac OS X
  • Next by thread: Re: NAV scripting
  • Index(es):
    • Date
    • Thread