Problem emailing asian charecters

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Guest

Problem emailing asian charecters

Post by Guest »

Versions are as follows:

Mantis v1.0.0
PHP 4.4.2
MySQL 4.1.15
Apache 2.0.55
Redhat linux 7.2 on 2.6.15 kernel

I work for a company with several Korean developers. I got korean fonts working in the MySQL DB by making the default charset UTF-8. Everything works beautifully until Mantis sends out emails. The emails come through as plain ASCII text and the korean fonts get hosed. I've tried ever setting I can think of to get this part working but have ran out of ideas.


Btw, I did try this in the 'email_api.php' to no avail

Code: Select all

                $mail->CharSet = "UTF-8";
                $t_subject=mb_convert_encoding($t_subject,"UTF-8",lang_get( 'charset', lang_get_current() ));
                $t_message=mb_convert_encoding($t_message,"UTF-8",lang_get( 'charset', lang_get_current() ));
I'm a PHP dummy so I'm not sure what else to look for.

Thanks!

Shawn Henry

shenry at winscom.net
Guest

Post by Guest »

Got it to work!

All I needed was this line in "core/email_api.php"

Code: Select all

$mail->CharSet = "UTF-8";
I simply removed these lines:

Code: Select all

$t_subject=mb_convert_encoding($t_subject,"UTF-8",lang_get( 'charset', lang_get_current() )); 
$t_message=mb_convert_encoding($t_message,"UTF-8",lang_get( 'charset', lang_get_current() )); 
Now korean fonts work perfectly. I added those 2nd lines because I found someone needed that to get Japanese to work. I suppose Korean language does not need this...

If someone gets a chance please add this to the manual. I'm sure someone out there will want to change the charset to UTF-8.
Post Reply