Re: Unicode-to-string bug?
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