GNOME Bugzilla – Bug 83045
messages with euro signs are held for empty
Last modified: 2006-06-18 05:15:00 UTC
Pan refuses to post new messages that contain euro signs (or only an euro sign), because it thinks they are empty. To reproduce, post a new message to a *test* group containing a few euro's.
I can recreate this by posting a message with '€' in the body, but leaving the charset ('More Headers' tab) at ISO-8859-1. If I set the charset to ISO-8859-15, the article is posted correctly. Frank: could you check whether you're seeing this under the same circumstances. Charles: sounds like part of the message validation should be to check for the right charset (though I'm not entirely happy with that solution either) ?
I don't think we should implicitly set the charset of posted messages, so raising an error dialog and sending the user back to change things is probably for the best. `ERROR: message uses characters not in specified charset `%s' - possibly use `%s' instead?", user_charset, g_mime_charset_best(body) Does this sound good?
Christophe: that's right, you have to select the charset then it works... imho the user should be allowed to use only the characters in the charset he is using when typing the message. It's not very logical to post in a different charset then the one you're using to type your message.
Constraining what the user types is going to be even more of a headache, though. Even after all the coding was done -- and I'm not sure how the code would look in the first place -- the euro would simply not show up when the user typed it, which would be more frustrating. The error dialog I suggested is intrusive, but does give an indication of what the problem is and how to fix it.
Implemented in CVS.