From: Tomas K. <to...@us...> - 2006-12-19 07:33:16
|
> Dear Tom, > >>> I am using the latest stable version of SM. In the config.php file I >>> set >>> the character set as UTF-8 because I need to be able to read and reply >>> to >>> emails written in languages such as Chinese, French or Russian. >>> >>> So far Russian emails are displayed just as set of question marks. I >>> haven't yet tried others but maybe someone would be kind enough to >>> point >>> me in the right direction? >> >> If you can't view Russian emails, check email headers. Look for >> MIME-Version, >> Content-Type and Content-Transfer-Encoding headers. I think you are >> testing only >> broken Russian form mails. If all headers are present - make sure that >> you >> pass >> configtest.php checks without error messages or notices and show those >> headers. > > I have taken a look at the header. It seems basically OK. Correct me if I > am wrong: > > Content-Type: text/plain; charset=koi8-r > Content-Transfer-Encoding: 8bit > Subject: Re: ???????? ?? ???????: ??????????? forgot about this standard violation. Contact people that created this email. 8bit symbols are not allowed in email headers. They MUST be encoded in Q or B encoding. RFC 2047 (http://www.faqs.org/rfcs/rfc2047.html). Some servers will refuse to accept emails that violate RFCs or will corrupt such emails. In email default charset in us-ascii. 7bit character set without Russian, Chinese or French symbols with diacritics. Only some mainsteam OSes with bundled browser and email client think that default email character set depends on selected locale. > I have even installed custom_charset plugin and set it to UTF-8 but to no > avail. Custom charset plugin is active only when user selects 'English "Custom charset"' translation in Display preferences. It is useful only when you want to provide user level options to control default interface character set. > You did mention though that I need a library with PHP to handle > Russian characters. You don't need extra decoding library to handle Russian emails. Я помню чудное мгновенье: Передо мной явилась ты, Как мимолетное виденье, Как гений чистой красоты. > What library do I need? You will need extra decoding library in order to read CJK (Chinese, Japanese, Korean) emails that are written not in utf-8. See http://www.squirrelmail.org/download.php Minimal SquirrelMal requirements are PHP session and pcre extension. If extra decoding library scripts are installed, use of PHP recode (http://www.php.net/recode) extension is strongly recommended. -- Tomas |