Re: Patch to handle undeclared 8 bit characters

Christian Ebert <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Black Trash Productions <http://www.blacktrash.org/>
Message-ID <[email protected]>
* Thomas Wiegner on Saturday, June 30, 2007 at 12:14:55 +0200:
> 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

great

> 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".

Works fine here. Again: I'm all for inclusion.

c
-- 
Make Slrn newsreader read MIME (Python required):
<http://www.blacktrash.org/hg/SlrnMime/>

-------------------------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.