• 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: Write a file in utf8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Write a file in utf8
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Write a file in utf8 (From: Jay Louvion <email@hidden>)
 >Re: Write a file in utf8 (From: Yvan KOENIG <email@hidden>)
 >Re: Write a file in utf8 (From: "Mark J. Reed" <email@hidden>)
 >Re: Write a file in utf8 (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Write a file in utf8
  • Next by Date: Re: Write a file in utf8
  • Previous by thread: Re: Write a file in utf8
  • Next by thread: Re: Write a file in utf8
  • Index(es):
    • Date
    • Thread