• 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: More fun with Unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: More fun with Unicode (From: bill <email@hidden>)

  • Prev by Date: FYI: String to alias coercion behaviour
  • Next by Date: Re: AB: Finding a contact from the phone number??
  • Previous by thread: Re: More fun with Unicode
  • Next by thread: FYI: String to alias coercion behaviour
  • Index(es):
    • Date
    • Thread