Re: Patch to handle undeclared 8 bit characters
Thomas Wiegner <[email protected]>
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Organization | Powered by Penguin |
| Message-ID | <20070630101455.GA20303@fliewatuet> |
Hi all, * Thomas Wiegner ([email protected]) wrote [Mon, 070611 22:28]: > I wrote a small patch to handle postings with undeclared 8 bit > characters in the Subject, Header and also undeclared 8 bit > characters in the body with a missing "Content-Type:" Header > (mostly created by MS Outlook Express). OK, I updated the patch a little bit, setting the fallback_charset variable slrn will now * convert Subject and From Header to that charset if they contain unencoded 8 bit characters * convert the body of a posting to that charset - if no content-type declaration is found in the headers - if the iconv function failed to convert to the charset declared in the headers I also wrote an additional patch which allows you to override an us-ascii charset declaration with the fallback charset. As Christian pointed out, this might be useful for dealing with google postings, which have 8 bit characters inside although they claim be "us-ascii". I put the patches on a website, you can find them with a detailed description here: http://www.foory.de/thw/slrn/ Again, feedback is welcome, cheers, Thomas ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/