Each message part must define their charset, if they do not, then ASCII is used as default. Your sample message did not have a charset header in the plain text part, so the correct thing to do is assume us-ascii. The charset header in the main headers gave a hint as to what the message could be, you can either cater for this in code by pandering to a broken mail encoder (no it is not the job of synapse to do this), or do something similar to what other mail clients do: 1) Apply a user defined "default" charset to messages without charset headers 2) Let the user choose a charset when reading the email (Thunderbird and Outlook express both have a menu item where charsets can be chosen)
But ultimately the message you are trying to decode is invalid/badly encoded, The problem is with them, not you. On 26/04/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > hi > yes, u r talking about version 38 > im still using 37 > even though this defaultcharset is helpful > the email can be any default charset, not just hebrew > as it is now, so i cant use it in this case > notice that there is a charset header in the > main headers of the email stating the correct > charset for the specific email > > -- > ---- > כבר הורדת את התוכנה? http://www.emailaya.co.il > > בתאריך 26/04/2007 19:09:04, Lukas Gebauer - [EMAIL PROTECTED] כתב: > >> thank you for your answer > >> as i can do what u said, locally > >> wouldnt it be better if synapse has this "feature" > >> built in? > > >RFC says exactly "default charset is US-ASCII". If someone using > >another default charset, then it violates RFC. However Synapse can > >set any charset as default, if you wish. Exists property for this. > >(called DefaultCharset) > > >-- > >Lukas Gebauer. > > >E-mail: [EMAIL PROTECTED] > >WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP > >Library > > > > >------------------------------------------------------------------------- > >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/ > >_______________________________________________ > >synalist-public mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/synalist-public > > ------------------------------------------------------------------------- > 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/ > _______________________________________________ > synalist-public mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/synalist-public > > ------------------------------------------------------------------------- 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/ _______________________________________________ synalist-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synalist-public
