• 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/UTF confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode/UTF confusion


  • Subject: Re: Unicode/UTF confusion
  • From: John Delacour <email@hidden>
  • Date: Sat, 3 May 2003 02:28:00 +0100
  • Mac-eudora-version: 6.0a16

At 2:09 am +0100 3/5/03, John Delacour wrote:

At 3:53 pm -0700 2/5/03, Christopher Nebel wrote:

That's proper UTF-16....

... visible result returned is confusing because the first character of the UCS-2 (as I prefer to call it)


It looks as though someone at Apple agrees with me :-) ....


set fU to "/tmp/x"
set f to POSIX file fU as file specification
set s to "This is an apple: " & (ASCII character 240)
open for access f with write permission
set eof f to 0
write s to f
close access f
set read_1 to read f
set read_2 to read f as <<class ucs2>>
{read_1, read_2}

There's an awful lot of loose talk about Unicode.

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.

  • Follow-Ups:
    • Re: Unicode/UTF confusion
      • From: John Delacour <email@hidden>
References: 
 >Re: Unicode/UTF confusion (From: Christopher Nebel <email@hidden>)
 >Re: Unicode/UTF confusion (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Unicode/UTF confusion
  • Next by Date: Re: mac to unix path names
  • Previous by thread: Re: Unicode/UTF confusion
  • Next by thread: Re: Unicode/UTF confusion
  • Index(es):
    • Date
    • Thread