Re: BOM & Unicode editors

Asmus Freytag wrote:
> 
> At 04:55 PM 5/9/00 -0700, Saba Sundaramurthy wrote:
> >     Is this something all editors that save files in Unicode or UTF-8 are
> >required to do? Can I depend on the presence of this marker in my code?
> 
> No, it's not a requirement, but it's a convention followed by quite a few
> tools,
> because otherwise it's harder to use the same .txt extension for both ASCII and
> Unicode (and also it helps to mark the byte order, of course).

This is all fine and well for UTF-16, but what about UTF-8 ? why does the
byte order matter?

> I would recommend that you look for it in your code, if you plan to read UTF-16
> files. 

And for UTF-8 files?

--
Chris

Received on Wednesday, 10 May 2000 04:44:19 UTC