[logback-user] Wrong Encoding in SMTPAppender

alex alessandro.fustini at dnshosting.it
Thu Jan 15 20:38:37 CET 2009


Sorry Ceki ,
I give you more information for debug if possible :
The code run on Resin 3.1.6 using java 1.6.0.6, logback 0.9.11., slf4j 
ver 1.5.5 and using Thunderbird 2.0.0.19 to read

Do you use a stand alone application to test it ? Is possible to have 
the code for test in my enviroment ?

Thanks a lot for all

PS Sorry I do not understand if is possible to me to continue on jiira 
to continue the description.. Should I register to do that ?


Ceki Gulcu wrote:
> Hello Alex,
>
> I have opened an issue regarding this problem. Its URL is:
>
>    http://jira.qos.ch/browse/LBCLASSIC-106
>
>
>
> alex wrote:
>   
>> Hi,
>> I configured my SMTPAppender like this
>>
>> <appender name="email" class="ch.qos.logback.classic.net.SMTPAppender">
>> <Subject>Error on - %p%nopex</Subject>
>> <Encoding>UTF-8</Encoding>
>> <SMTPHost>192.168.11.41</SMTPHost>
>> <To>error at xxxxxxxx.xx</To>
>> <From>error at xxxxxxx.xx/From>
>> <layout class="ch.qos.logback.classic.PatternLayout">
>> <pattern>%date [%thread] %-5level %logger{50} - %msg%n%ex</pattern>
>> </layout>
>> </appender>
>>
>> The email is sent from code :
>>
>> log.error("Ordine " + myOrderHeader.getIdorder() + " è stato pagato ma 
>> il prodotto è già SCADUTO !! Res / Item "
>> + myOrderHeader.getIdreseller() + " / " + itemMaster.getItemId());
>>
>> And this is the mail source :
>>
>> ------=_Part_82_50553.1232007757067
>> Content-Type: text/plain; charset=UTF-8
>> Content-Transfer-Encoding: quoted-printable
>>
>> 2009-01-15 09:22:37,067 [http--80-8] ERROR it.dnshst.useritem.UserItem - Or=
>> dine 158 =E8 stato pagato ma il prodotto =E8 gi=E0 SCADUTO !! Res / Item 1 =
>> / 1504
>>
>> ------=_Part_82_50553.1232007757067--
>>
>>
>> And this is displaied
>>
>> 2009-01-15 09:22:37,067 [http--80-8] ERROR it.dnshst.useritem.UserItem - Ordine 158 � stato pagato ma il prodotto � gi� SCADUTO !! Res / Item 1 / 1504
>>
>>
>> All character "extend" are wrong encoding (è à).
>>
>> Any Hints ?
>> Thanks a lot
>>
>>
>>     
>
>   


-- 
Alex Fustini
Mysql Developer 5 Certified
Mysql Dba 5 Certified



More information about the Logback-user mailing list