• 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-to-string bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Unicode-to-string bug?
      • From: "Shane Stanley" <email@hidden>
References: 
 >Unicode-to-string bug? (From: "Shane Stanley" <email@hidden>)

  • Prev by Date: Re: Unicode-to-string bug?
  • Next by Date: Re: Creating preferences for an applescript application
  • Previous by thread: Re: Unicode-to-string bug?
  • Next by thread: Re: Unicode-to-string bug?
  • Index(es):
    • Date
    • Thread