Jorge Bastos wrote:
> You're right Paul,
> But some messages that i have problems, are messages that i send in my
> linux console, and no charset information is going on it.
> For example:
> 
> echo "ola olá teste ç çãõ"|mail -s "ola olá teste ç çãõ" [EMAIL PROTECTED]

Sending 8bit chars in a subject line violates the RFC2822 do please don't do
that. The whole exercise with default_msg_encoding is to accomodate certain
broken but widely used clients (read outlook) that will send 8bit headers. Those
will most commonly use latin-1 or windows-1250 charsets.

You, however, when sending from the console, are most likely sending utf8 
strings.

However, there is *no* way you can determine what charset is used for an 8bit
string. Let me restate that: without knowing the charset beforehand you can not
know how to represent the characters above 127.


> 
> The values in the message body apear ok, but in the subject no, in the
> subject all special chars are transleted to "???".
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message ----- From: "Paul J Stevens" <[EMAIL PROTECTED]>
> To: "DBMail mailinglist" <[email protected]>
> Sent: Tuesday, April 03, 2007 12:34 PM
> Subject: Re: [Dbmail] Crazy Chars
> 
> 
> 
> 
> default_msg_encoding:
> 
> *should* be the same as the encoding used by your outlook clients (the ones
> sending the messages with 8bit headers)
> 
> encoding:
> 
> must be the same as the encoding of the database.
> 
> In your case it's the first that's biting you (default_msg_encoding).
> 
> Most of your outlook clients that are sending 8bit headers in messages are
> probably using windows-1250 or latin-1 charsets, *not* utf8.
> 
> 
> Jorge Bastos wrote:
>> Ah, sorry Paul/Aaron,
>>
>> The screenshots are without:
>> encoding             = utf8
>> default_msg_encoding = utf8
>>
>> and with the database in Latin1 charset:
>>
>> After i added this do dbmail.conf and changed the database to UTF8, i
>> have in OE the word:
>> "Situação"
>> gets:
>> "Situa??o"
>>
>> The same for SquirrelMail, RoundCube and thunderbird, and MSoutlook
>> 2003 show's it right.
>>
>>
>>   ----- Original Message -----   From: Jorge Bastos
>>   To: DBMail mailinglist
>>   Sent: Tuesday, April 03, 2007 11:37 AM
>>   Subject: [Dbmail] Crazy Chars
>>
>>
>>   Paul / Aaron,
>>   After updating to last svn, when i have for example the folowing word:
>>
>>   "Situação"
>>
>>   It gets crazy showed by OE.
>>
>>   Squirrelmail show it +/- correct, but are other email that he just
>> show it wrong as you can see in attach "sq mail.jpg".
>>
>>
>>   In thunderbird i can see the messages with the subject starting with
>> UTF8..... etc etc right, but the one with the text "Situação" seams a
>> bit strange also..
>>
>>   I have the database with charset UTF8 and collation utf8_general_ci
>>   And in dbmail.conf i also have with:
>>
>>   encoding             = utf8
>>   default_msg_encoding = utf8
>>
>>   How to resolve this, or this need some fine tunning from you?
>>   Want me to report this?
>>
>>
>>   Jorge
>>
>>
>> ------------------------------------------------------------------------------
>>
>>
>>
>>   _______________________________________________
>>   DBmail mailing list
>>   [email protected]
>>   https://mailman.fastxs.nl/mailman/listinfo/dbmail
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> DBmail mailing list
>> [email protected]
>> https://mailman.fastxs.nl/mailman/listinfo/dbmail
> 
> 


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to