> > first off, thank you for your quick reply. > >>> When I look at the HTML source code for this mail that does not >>> display Thai characters correctly, I see "&#3627". So squirrelmail >>> is replacing the "&" with "&" when displaying the email and >>> therefore it is not displayed correctly. >> >> >> SquirrelMail displays them correctly. You are not supposed to use html >> formating in plain text email. html entities from plain text emails are >> displayed as html entity codes in SquirrelMail. > > So you are saying my mistake is to copy and paste from another > application?
You have sent email with Thai characters using html form with character set that does not support Thai. You see Thai letters in html form, but they are sent as html codes by Firefox. ---- หน้าของ ประเทศไทย ---- >> Used SquirrelMail version? Older SquirrelMail versions ignore >> $default_charset configuration variable, because it is possible to >> misconfigure interface. 1.4.5 uses $default_charset only with en_US >> translation. > sorry. I really should know better than that, not to include the version. > I am using the debian package from the stable distribution, so it's > 1.4.4. > > > >> Could you select Russian or Lithuanian translation and try composing >> emails in them? If your SquirrelMail installation does not have >> locale/ru_RU, locale/lt_LT and other translation files, interface will >> remain in English. > I do not use the Thai translation. I thought, or assumed, that a > translation changes the whole interface to another language. I do not want > that at all; I want to use the english interface, but be able to compose > emails in Thai. SquirrelMail composes emails in character set that depends on selected translation. US English translation uses ISO-8859-1 character set. >> SquirrelMail supports utf-8. If you use utf-8 or any other multibyte >> character set, use of SquirrelMail 1.4.6cvs or 1.5.1cvs and PHP with >> mbstring extension is recommended. Older SquirrelMail versions don't >> encode headers correctly. If mbstring extension is not present, >> interface does not break, but it reverts to broken quoted-printable >> encoding. > > Interesting .. But *should* this work with 1.4.4? This applies only to utf-8 and other multibyte character sets. tis-620 is unibyte character set. SquirrelMail can read tis-620 encoded emails. Replies should work only if you have translation in tis-620 character set. If Thai text is in utf-8, you must turn on lossy encoding option in SquirrelMail configuration utility Languages meniu. When lossy encoding is not turned on, SquirrelMail won't convert from utf-8 to tis-620 character set. >From 1.4.5 changelog: - Default charset variable can be used to change charset used by US English translation (#1195728). $default_charset fix is not in default 1.4.4 package. > One problem is, how do I compose thai in the compose window; the other > is, the characters get messed up when I reply to a mail with thai > characters in it. > > I thought I was really copying and pasting unicode characters, not html > entities! I will have to do some further testing, but not today (it's late > in thailand). Do you need any more information from me- do you recommend > posting on the i18n list, too? You will get same reply from same person. I am SquirrelMail i18n developer. If you want to compose email in Thai, make sure that SquirrelMail pages are displayed in character set that supports Thai. Pages should be in tis-620 or cp874 character set without any manual overrides in browser. If you want to use tis-620 with English translation, open /usr/share/squirrelmail/functions/i18n.php, find ---- $languages['en_US']['NAME'] = 'English'; $languages['en_US']['CHARSET'] = 'iso-8859-1'; $languages['en_US']['LOCALE'] = 'en_US.ISO8859-1'; $languages['en']['ALIAS'] = 'en_US'; ---- and change it to ---- $languages['en_US']['NAME'] = 'English'; $languages['en_US']['CHARSET'] = 'tis-620'; $languages['en']['ALIAS'] = 'en_US'; ---- or use custom_charset plugin, add Thai character set to list of available character sets and use "English (custom charset)" translation. -- Tomas ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click -- squirrelmail-users mailing list Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines List Address: [email protected] List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
