make khtml/misc/decoder.* public

Josef Spillner spillner at kde.org
Mon Mar 5 18:28:47 GMT 2007


Am Montag, 5. März 2007 18:32 schrieb Thiago Macieira:
> This is the only safe encoding detection that I know of. Everything else
> is speculative.
>
> UTF-8: ef bb bf
> UTF-16 little endian: ff fe
> UTF-16 big endian: fe ff
> UTF-32 little endian: ff fe 00 00
> UTF-32 big endian: 00 00 fe ff

I wouldn't say that RFC 4627 disagrees, but at least it generalises the above 
a bit.

Josef




More information about the kde-core-devel mailing list