Character encodings (UTF16)

Thiago Macieira thiago.macieira at kdemail.net
Thu Feb 10 04:13:12 GMT 2005


Andras Mantia wrote:
>So you say the files are correct and just the byte order marks is not
>present and this causes the KDE applications to fail loading it? In
>this case the problem is really on the KDE side.

Yes, the file appears to be a valid UTF-16LE file.

UTF-16 files should contain a BOM. UCS-4 files probably as well, even 
though UCS-4LE and UTF-16LE will clash.

Some systems and editors add BOM to UTF-8 as well, but that's not a good 
idea for Unix text files.
-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- 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/20050210/a6b06591/attachment.sig>


More information about the kde-core-devel mailing list