make khtml/misc/decoder.* public
Thiago Macieira
thiago at kde.org
Mon Mar 5 20:02:30 GMT 2007
Maksim Orlovich wrote:
>Depends on your notion of safety, though. For a lot of codecs, while you
>can not detect them reliably, picking them will do no harm, as they're
>completely, 100% reversible --- when you convert to unicode and back,
> you get the original input back. In contrast, detecting utf8 from BOM
> -is- technically unsafe, since if the BOM-looking sequence is an
> accident, and the rest of file is malformed, it's big trouble..
I didn't add this because I thought it would be stating the obvious:
any encoding detection has to make sure that it can decode and recode back
without errors
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070305/df1f25a6/attachment.sig>
More information about the kde-core-devel
mailing list