LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Script for fixing broken character encodings in emails (http://www.linuxquestions.org/questions/linux-server-73/script-for-fixing-broken-character-encodings-in-emails-533075/)

pschoenb 02-27-2007 05:51 PM

Script for fixing broken character encodings in emails
 
Hi,

I often receive emails that contain an incorrect "Content-Type" header which causes them to be displayed incorrectly in Thunderbird if the encoding auto-detection is enabled.

Is there any filter script out there that tries to figure out the used charset by scanning the mail body and that possibly fixes such encoding inconsistencies?

Bogdan 02-28-2007 04:37 PM

check enca - it seems to guess charset, so you have to extract content-type from email and pass it to enca as destination charset - and you will (I hope) have both text encodind and content-type header same.


All times are GMT -5. The time now is 12:10 PM.