Re: Unicode, AppleScript, and the shell
Re: Unicode, AppleScript, and the shell
- Subject: Re: Unicode, AppleScript, and the shell
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 22 Jul 2003 17:17:09 -0700
On 7/22/03 4:26 PM, "John Delacour" <email@hidden> wrote:
>
Never try to concatenate a 'string' (eg. "open ") with Unicode text.
It just follows the normal AppleScript concatenation rules that "left side
wins" when concatenating items of different classes which can be coerced to
each other. Thus "open " - an ASCII string on the left hand side - would
coerce the Unicode on the right-hand side to ASCII string, turning non-ASCII
characters into "?" or funny stuff in the process, as John implies. But you
can easily avoid that if you need to concatenate text, by
"open " as Unicode text & unicodeTextVariable
And if the Unicode is on the left and ASCII text on the right, a straight
concatenation will coerce it all to Unicode. ASCII strings coerced to
Unicode have the "same" characters (but as Unicode, of course), and
non-ASCII text will not get distorted.
--
Paul Berkowitz
_______________________________________________
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.