<<< Date Index >>>     <<< Thread Index >>>

Re: Smarter send_charset



In the last episode (Sep 06), Lionel Elie Mamane said:
> On Mon, Sep 05, 2005 at 11:09:54PM -0400, Ryan King wrote:
> > Long-time user, first time poster.
> > 
> > The default send_charset is "us-ascii:iso-8859-1:utf-8".  From that
> > list, "Mutt will use the first character set into which the text
> > can be converted exactly."
> > 
> > I'm struggling to think of any way the utf-8 encoding will be
> > selected - because all bitpatterns from the smallest 0x00 to the
> > grandest 0xFF are valid ISO-8859-1 (as far as I know).
> 
> Nope. The ranges 0-31 and 127-159 are not valid iso-8859.

There are also a lot of other characters not in 8859-1.  Remember,
you're translating from $charset to the first character set in
$send_charset that the message fits into.  If $charset is cp437 and you
have line-drawing characters in your message, for example, it will be
encoded as utf-8 (since 8859-1 has no line-drawing chars).

-- 
        Dan Nelson
        dnelson@xxxxxxxxxxxxxxx