title: MimeDecode koi8r charset
body: <p>I've a problem with koi8r charset with mimeDecode,</p>
  
  <p>As an example:</p>
  
  <p>Subject: =?KOI8-R?B?8NLJ18XUIQ==?=
     From: =?KOI8-R?B?4czFy9PBzsTSIPfPzMvP1w==?= </p>
  
  <p>Becomes:</p>
  
  <p>Subject: п÷я─п╦п╡п╣я┌!
     From: Александр Волков </p>
  
  <p>It should be as follows,</p>
  
  <p>Subject: Привет! 
     From: Александр Волков </p>
  
  <p>So the exact problem is </p>
  
  <pre><code>        if (is_string($this-&gt;_decode_headers)) {
              $conv = @iconv($charset, $this-&gt;_decode_headers, $text);
              $text = ($conv === false) ? $text : $conv;
          }
  </code></pre>
  
  <p>Thank you.</p>
  
  <p><strong>UPDATE</strong>
  Solved, the problem was email headers were saved to db in other charset.</p>