postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Character corruption for Chinese (simple and

Re: Character corruption for Chinese (simple and traditional) and Korean texts

From: Ralf Hildebrandt <Ralf.Hildebrandt_at_nospam>
Date: Tue Oct 05 2010 - 07:06:38 GMT
To: postfix-users@postfix.org

* Sharma, Ashish <ashish.sharma3@hp.com>:
> Hi,
>
> I have a setup, where emails received by mail server(postfix) are taken
> on and the resulting email's body(html or plain text) and attachments
> are parsed to separate files and saved, for this I use javax mail api.
>
> The problem occurs for email body when it is in Chinese (simple and
> traditional) (charset GB2312, as per email header) or Korean (charset
> ks_c_5601-1987, as per email header),
>
> the resulting parsed email bodies show character corruption (the
> characters are displayed as '?').

Postfix does not change the contects of a mail. Period.
 
> I am unable to understand why rest of the programs like Google mail,
> Outlook can parse the mail body right while my code could not.

Sounds like an error in your code then

> Please suggest what am I doing wrong?

Without knowing your code, it's really hard to tell.

Personally, I'd debug by using alway_bcc_maps to a simple mailbox and
examine the mails in detail.

-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt_at_charite.de | http://www.charite.de