Re: Unicode-to-string bug?
Re: Unicode-to-string bug?
- Subject: Re: Unicode-to-string bug?
- From: Chris Espinosa <email@hidden>
- Date: Tue, 23 Nov 2004 22:24:40 -0800
On Nov 23, 2004, at 10:06 PM, Shane Stanley wrote:
set y to «data utxt0061» as Unicode text
set x to «data utxt2011» as Unicode text
" " & (y as string)
" " & (x as string)
" " & y
" " & x
I get an error on the last line:
--> Can't make "-" into a string.
I this just an AS bug? Or am I missing something?
It means that character U+2011 is not a valid character in the current
system language's text encoding. Unicode is universal and
pan-language; the "string" class is language-specific for the current
system language. Your current system language is probably old-style
MacRoman, which doesn't have a NON-BREAKING HYPHEN defined in its
character set.
I'm not sure why " " & (x as string) succeeds and " " & x fails.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden