Character encodings (UTF16)

Thiago Macieira thiago.macieira at kdemail.net
Wed Feb 9 15:52:04 GMT 2005


Andras Mantia wrote:
>PS: It's funny how it's shown in KMail. The file was attached, no sign
>of HTML mails here.

Well, the attachment is totally wrong:

Content-Type: text/html;
  charset="us-ascii";

It'll never display correctly in KMail. I'd venture to say that even if 
you click on the attachment and have it open externally, it should NOT 
display correctly, because of that encoding. The emailer -- KMail -- 
should have added the proper encoding.

However, if you save the file to disk, then open it, the programs should 
detect the UTF-16 encoding. It would be easier if the file started with 
the Byte Order Mark (BOM), which is a good way of telling it is UTF-16.

-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- 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/20050209/6d245303/attachment.sig>


More information about the kde-core-devel mailing list