P.S. Didn't want to make a mess in thread [THREAD]5713[/THREAD].
In logs/errors file I see this one:
[19-Apr-2010 20:19:36 +0400]: PHP Error: Could not convert string from WIN-1251 to UTF-8. Make sure iconv/mbstring is installed or lib/utf8.class is available. in /usr/local/www/www.webmail.starnet.ru/program/include/main.inc on line 279 (GET /?_task=mail&_action=preview&_uid=2&_mbox=INBOX)
First, I have checked the directory:
/program/lib/encoding/
There is no any file starting with name WIN-1251.
Second, I have checked the file:
/program/lib/utf8.class.php
I was only able to find the line with this code:
$charset = preg_replace(array('/^WINDOWS-*125([0-8])$/', '/^CP-/'), array('CP125\\1', 'CP'), $charset);But again no any code for name WIN-1251.
The question is...
The error I see can be because the /program/lib/utf8.class.php file just has no any string (code) for WIN-1251?
May be I can fix that error just by adding one more line (second line) like:
$charset = preg_replace(array('/^WIN-*125([0-8])$/', '/^CP-/'), array('CP125\\1', 'CP'), $charset);So the final code will be:
$charset = preg_replace(array('/^WINDOWS-*125([0-8])$/', '/^CP-/'), array('CP125\\1', 'CP'), $charset);
$charset = preg_replace(array('/^WIN-*125([0-8])$/', '/^CP-/'), array('CP125\\1', 'CP'), $charset);Is the direction of my thoughts right?