2.10.1 encoding problem

Dmitry Melekhov dm at belkam.com
Wed Mar 29 07:35:30 CEST 2017


OK, something is wrong in encoding itself.

I commented out
$m_body = safe_encode(c('bdy_encoding'), $m_body)  if defined $m_body;

And got message with good utf-8 in it...


28.03.2017 14:17, Dmitry Melekhov пишет:
>
> Hello!
>
>
> Moving my server from ubuntu 12.04 with 2.6.5 to 16.04 with 2.10.1.
>
> And found that there is problem encoding amavis sends to user, namely 
> about messages with viruses.
>
>
> In 12.04 and 2.6.5
>
> everything works just fine, but 2.10.1 sends  broken messages
>
> I have ru_RU templates directory with charset file
> with line UTF-8 in it.
> In /etc/amavis/conf.d/30-template_localization
> I have
> $hdr_encoding = 'utf-8';
> $bdy_encoding = 'utf-8';
>
> I this case encoding of message is set to utf-8 ,
> but message is broken, i.e. it is not in utf-8.
>
> if I set
> $bdy_encoding = 'iso-8859-1';
> then there is utf-8 readable message, but just wrong info about 
> encoding in it.
>
> Everything like described here in last message:
>
> http://serverdoma.ru/viewtopic.php?f=39&t=1027 
> <http://serverdoma.ru/viewtopic.php?f=39&t=1027>
>
>
> Could you, please, tell me how can I solve this problem?
>
>
> Thank you!
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20170329/fdf839aa/attachment.html>


More information about the amavis-users mailing list