• 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: Bill <email@hidden>
  • Date: Thu, 25 Nov 2004 15:55:58 +0800


If I run the following:

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.

Shane,

Based on my experience, I would try this:

set y to «data utxt0061»
set x to «data utxt2011»

" " & y
-- " a"

" " & x
-- " -"

In case your need to do similar operations, declare the leftmost text as unicode text:

set z to «data utxt60B2»
" " & z
-- " ?"
-- wrong display in result pane.

(" " as Unicode text) & z
-- " 悲"
-- correct display


bill


☠ 孤寂地 <http://homepage.mac.com/cherish/triste/>

_______________________________________________
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


  • Prev by Date: Setting contents of a large file to a variable.
  • Next by Date: Re: Setting contents of a large file to a variable.
  • Previous by thread: Re: Unicode-to-string bug?
  • Next by thread: Save Quark 6 files as Quark 5
  • Index(es):
    • Date
    • Thread