GNOME Bugzilla – Bug 88670
Pan ignores charset setting for article body
Last modified: 2006-06-18 04:56:00 UTC
(I'm using CVS version) Pan ignores charset setting for article body. Headers are set correcty like this: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 But body is still in utf-8.
I can't work out what you mean here. Are you reading an article ? Or writing a new article ? If reading, could you give me a group + message id where you're seeing this ?
I'm writing new article. It contains some czech characters.
Created attachment 9985 [details] bad headers
I attached one example. Charset is set to iso-8859-2 in pan, which is reflected in header. Article body uses utf-8. (btw, in attached file comment: replace/bad headers/bad body charset example/ :-)
When creating the GMimeMessage in message-header.c, we should convert the article body before passing it to gmime.
Marking this as depending on 85289: they are variations of the same bug, but 88670 will need extra testing to verify it's working. The core problem is that messages coming out of the Compose window are kept in utf8, rather than encoded into the user-specified charset.
Prioritizing remaining 0.13.0 tasks
marking crashers & other server problems as "major" severity
or just give a filtered-stream to GMime (with a charset filter to do the conversion from UTF-8 to iso-8859-2 in this case).
<chris_> I think you can really only do the conversion from utf-8 to charset <chris_> just before you send it: it gets put in pan.sendlater first. <chris_> so, it needs to be edited from there, we'd need to reconvert <chris_> from charset to utf-8. <charles> task-post.c::build_nntp_message() builds the char* we pass to the server, from a GMimeMessage <charles> That looks like a good candidate, s.t. it doesn't affect the original GMimeMessage <chris_> so, you just need to make sure the charset is available there. � chris_/#pan curses signals. <charles> working on that in gui-headers, too. I probably should write a pan_g_mime_message_get_group s.t. it's just in one place
Fixed in cvs head.