On Monday 26 February 2007 09:22, Lukas Gebauer wrote:
> > In 38b4 you introduce a bug encoding utf-8 byte order mark using
> > AddPartHTML method:
> BOM is not added in 38b4, it exists in a few releases before.

Please reread quoted text. As wrote: 'In 38b4 you introduce a bug...' 

> Any unicode document can have BOM in any place! 

This is not correct. Essencial Byte Order Mark FAQ from www.unicode.org: 

"Q: What is a BOM?
A: A byte order mark (BOM) consists of the character code U+FEFF at the 
beginning of a data stream, where it can be used as a signature defining the 
byte order and encoding form, primarily of unmarked plaintext files. Under 
some higher level protocols, use of a BOM may be mandatory (or prohibited) in 
the Unicode data stream defined in that protocol."

> And presence of BOM cannot break any correctly written unicode reader.

Unicode reader should be written correctly, unfortunately that is not always  
the case. As such, it can be broken quite easely. With presence of BOM and 
charset as well, decoding  can be easy missguided. For example charset may be 
be in Windows-1251, however raw encoding in utf-8 or 16  depending on BOM...

That mean, that charset in presence of BOM is not relevant at all. However, 
charset exists and that is primary encoder/decoder guide. 

> You must ask by reverse question: is here RFC what says: "you cannot
> use BOM in MIME part content"?

It is quite unlogical explicitly use BOM if charset cleraly say which unicode 
encoder is used, as wrote upper.

> BTW: BOM for UTF-8 has been added long time ago for stupid Outlook,
> what ignoring charset information in part headers in some cases and
> detecting UTF-8 by BOM presence.

Outlook should not be a refference e-client at all. It is probably one of the 
most buggy e-clients.

Sasa
--
www.szutils.net

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to