Re: Write a file in utf8
Re: Write a file in utf8
- Subject: Re: Write a file in utf8
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 5 Aug 2009 10:36:44 -0400
(The string "spécification. Kœnig" in UTF-8 looks like this in a hex dump:
0000000 73 70 c3 a9 63 69 66 69 63 61 74 69 6f 6e 2e 20
0000010 4b c5 93 6e 69 67
With the BOM, like this:
0000000 ef bb bf 73 70 c3 a9 63 69 66 69 63 61 74 69 6f
0000010 6e 2e 20 4b c5 93 6e 69 67)
On Wed, Aug 5, 2009 at 10:32 AM, Mark J. Reed<email@hidden> wrote:
> Look at those 00s in the hex dump! The file is NOT UTF-8 at all.
> It's UTF-16. The AS write is not doing what you think it's doing.
>
> --
> Mark J. Reed <email@hidden>
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden