Topic: Bug when sending mails in different encoding.

Hi there,
I'm running punbb with cp1251 encoding.
My users complained that in from and subject they got squares...
after a while wondering why I've come up that the from and subject must be base64 encoded and email.php on lines 75 and 76 should look like this:

    $subject = "=?".$lang_common['lang_encoding']."?B?".base64_encode(trim(preg_replace('#[\n\r]+#s', '', $subject)))."?=\r\n";       
    $from = "=?".$lang_common['lang_encoding']."?B?".base64_encode(trim(preg_replace('#[\n\r:]+#s', '', $from)))."?=";

hope that helps someone.