Re: More fun with Unicode
Re: More fun with Unicode
- Subject: Re: More fun with Unicode
- From: John Delacour <email@hidden>
- Date: Tue, 6 May 2003 13:30:40 +0100
- Mac-eudora-version: 6.0a16
At 5:31 pm +0800 6/5/03, bill wrote:
> so this script actually writes UTF8 to begin with.
Well, isn9t it UTF-16? Two reasons: Using Terminal.app (the
character set encoding is UTF-8) the command:
% more /tmp/temp
Would returns garbled characters
At what point? At the point when Perl has written it as UTF-8 ? I
said "writes UTF8 _to_begin_with_".
Then, using TextEdit.app (the default plain text encoding is also
UTF-8) to open the file 3/tmp/temp2, it appears as a blank document.
At what point? At the point when Perl has written it as UTF-8 ? I
said "writes UTF8 _to_begin_with_".
Only using UTF-16 for encoding (press command O & choose UTF-16),
we can see the circled 3WOW2 & 3!2.
At what point? At the point when Perl has written it as UTF-8 ? I
said "writes UTF8 _to_begin_with_".
By the end of the script the file contains something else. The
values at different points in the script are returned in the list at
the end. I took a bit of trouble to make things clear. Take a bit of
trouble yourself and see.
On the contrary, your last script to write the poem, it9s normal
using UTF-8 by TextEdit.app to open the 3tmp/temp2; quite confusing
:(
Read the script and STEP THROUGH IT, as I suggested at first.
IMO, using applescript to deal with unicode, it9s more headache than fun :(
I'm warming to it.... but I'm wasting my time sharing this stuff if I
have to reply to half a dozen replies every time from people who
haven't looked at it properly.
JD
--
_______________________________________________
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.