Roundcube Community Forum

 

Sent mails not encoded in UTF-8 have problem

Started by izsmmmo, March 24, 2008, 09:36:09 AM

Previous topic - Next topic

izsmmmo

Roundcube cannot display not encoded in UTF-8.
Outlook Express displays the special chars without any problem.
Below are the screenshots of the same account and a message,
Roundcube vs Windows Live Mail( or Outlook Express)
Reds are the wrong words. Greens are ok. The sample message is
encoded in Windows-1254. I've examined the database, special
characters are also removed there, looks like a conversion problem:



izsmmmo

I've guessed right, from the log:

[25-Feb-2008 10:05:37] PHP Warning: mb_convert_encoding() [function.mb-convert-encoding]: Illegal character encoding specified in W:\www\webmail.izsmmmo.com\program\include\main.inc on line 928


izsmmmo

Ok I've forced to use iconv instead of mb_convert_encoding,
and seems ok...

  // return if convert succeeded
  if (($out = mb_convert_encoding($str, $to, $from)) != '')
   return iconv($from, $to, $str);
   //return $out;
  }