• 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: Writing to file as UTF8 with BOM ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing to file as UTF8 with BOM ?


  • Subject: Re: Writing to file as UTF8 with BOM ?
  • From: Emmanuel <email@hidden>
  • Date: Thu, 26 Oct 2006 16:00:37 +0200

At 3:22 PM +0200 10/26/06, Yvon Thoraval wrote:
The rest as string? Not as utf8?
sorry if i miss-understood your thread but writing BOM for UTF-8 is at least unusefull nor might cretaes prob.

I think the OP stated explicitly that the program he uses requires the BOM.

however if you add the BOM this might confuse parsers (xml or php) because they want to see a "<" as the first character.

Will definitely confuse non Unicode-savvy parsers, but I suppose that most Unicode-savvy parsers will handle gracefully the BOM.


As an example, I think that Smile (which includes many things including a XML parser) writes the BOM if you change a UTF-8 file where it first detected the BOM when opening.

Emmanuel
_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Writing to file as UTF8 with BOM ?
      • From: Yvon Thoraval <email@hidden>
References: 
 >Re: Writing to file as UTF8 with BOM ? (From: Richard Rönnbäck <email@hidden>)
 >Re: Writing to file as UTF8 with BOM ? (From: "Mark J. Reed" <email@hidden>)
 >Re: Writing to file as UTF8 with BOM ? (From: Yvon Thoraval <email@hidden>)

  • Prev by Date: Re: Writing to file as UTF8 with BOM ?
  • Next by Date: Re: Writing to file as UTF8 with BOM ?
  • Previous by thread: Re: Writing to file as UTF8 with BOM ?
  • Next by thread: Re: Writing to file as UTF8 with BOM ?
  • Index(es):
    • Date
    • Thread