Re: Problems printing non-ASCII characters



Hi Toralf!

Am 21.03.02 15:49:08 schrieb(en) Toralf Lund:
> Content-Type: text/plain; format=flowed; charset=ISO-8859-1
> 
> are printed correctly, while text is missing as described earlier from 
> ones with just
> 
> Content-Type: text/plain; format=flowed
> 
> Perhaps earlier releases assumed ISO-8859-1 while the current doesn't?

In src/print.c, function prepare_plaintext(), we try to find the body's 
charset using libbalsa_message_body_get_parameter(body, "charset"). If this 
returns not NULL, we use this charset to convert to UTF8, otherwise we use 
ISO-8859-1. If there is a charset, but iconv_open() failes, we fall back to 
us-ascii (which afaik is plain rfc822 and does *not* contain any chars >= 
128). The same happens for the header lines in function print_info_new().

So, in short, I can only imagine that iconv_open() failed due to a strange 
charset returned, but I have no idea why you should get something wrong 
there. Maybe you want to run balsa in a debugger, set a breakpoint to 
prepare_plaintext(), and check what the charset actually *is* and if 
iconv_open() works?

Hope this helps,
Cheers,

	Albrecht.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
        Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]