<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">OK, something is wrong in encoding
itself.<br>
<br>
I commented out<br>
$m_body = safe_encode(c('bdy_encoding'), $m_body) if defined
$m_body;<br>
<br>
And got message with good utf-8 in it...<br>
<br>
<br>
28.03.2017 14:17, Dmitry Melekhov пишет:<br>
</div>
<blockquote
cite="mid:d0786ad5-4da3-d7f9-a92d-212fbbe1e0d5@belkam.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div class="moz-forward-container"><br>
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<p>Hello!</p>
<p><br>
</p>
<p>Moving my server from ubuntu 12.04 with 2.6.5 to 16.04 with
2.10.1.</p>
<p>And found that there is problem encoding amavis sends to
user, namely about messages with viruses.</p>
<p><br>
</p>
<p id="yui_3_10_3_1_1490694355354_1406">In 12.04 and 2.6.5 <br>
</p>
<p>everything works just fine, but 2.10.1 sends broken messages<br>
</p>
<p> I have ru_RU templates directory with charset file<br>
with line UTF-8 in it.<br>
In /etc/amavis/<wbr>conf.d/<wbr>30-template_<wbr>localization<br>
I have<br>
$hdr_encoding = 'utf-8';<br>
$bdy_encoding = 'utf-8';</p>
<p>I this case encoding of message is set to utf-8 ,<br>
but message is broken, i.e. it is not in utf-8.</p>
<p>if I set<br>
$bdy_encoding = 'iso-8859-1';<br>
then there is utf-8 readable message, but just wrong info
about encoding in it.</p>
<p>Everything like described here in last message:</p>
<p><a moz-do-not-send="true" rel="nofollow"
href="http://serverdoma.ru/viewtopic.php?f=39&t=1027">http://<wbr>serverdoma.<wbr>ru/viewtopic.<wbr>php?f=39&<wbr>t=1027</a></p>
<p><br>
</p>
<p>Could you, please, tell me how can I solve this problem?</p>
<p><br>
</p>
<p>Thank you!</p>
<p><br>
</p>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>