Roundcube Community Forum

Release Support => Pending Issues => Topic started by: izsmmmo on March 24, 2008, 09:36:09 AM

Title: Sent mails not encoded in UTF-8 have problem
Post by: izsmmmo on March 24, 2008, 09:36:09 AM
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:

(http://img381.imageshack.us/img381/5126/roundcubejb7.gif)
Title: Re: Sent mails not encoded in UTF-8 have problem
Post by: till on March 24, 2008, 09:05:17 PM
http://trac.roundcube.net/wiki/Howto_ReportIssues
Title: Re: Sent mails not encoded in UTF-8 have problem
Post by: izsmmmo on March 25, 2008, 03:16:34 AM
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

Title: Re: Sent mails not encoded in UTF-8 have problem
Post by: izsmmmo on March 25, 2008, 05:19:29 AM
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;
  }