View Issue Details

IDProjectCategoryView StatusLast Update
0006643mantisbtemailpublic2008-04-18 03:30
Reporterkawai Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version1.0.0rc5 
Summary0006643: mail charset should be ISO-2022-JP for Japanese language
Description

According to the RFC1468 and those implemantations of many Japanese
native email applications, iso-2022-jp charset is preferred.

So I created a patch as attached file.

TagsNo tags attached.
Attached Files
patch.txt (887 bytes)   
--- mantis-1.0.0rc5/core/email_api.php	2005-08-05 05:57:50.000000000 +0900
+++ mantis-1.0.0rc5/core/email_api.php.new	2006-01-27 15:39:24.542072000 +0900
@@ -676,6 +676,12 @@
 		$mail->WordWrap = 80;              # set word wrap to 50 characters
 		$mail->Priority = config_get( 'mail_priority' );               # Urgent = 1, Not Urgent = 5, Disable = 0
 		$mail->CharSet = lang_get( 'charset', lang_get_current() );
+		if(lang_get('phpmailer_language',lang_get_current())=='ja'){
+			$mail->CharSet = "ISO-2022-JP";
+			$t_subject=mb_convert_encoding($t_subject,"ISO-2022-JP",lang_get( 'charset', lang_get_current() ));
+			$t_message=mb_convert_encoding($t_message,"ISO-2022-JP",lang_get( 'charset', lang_get_current() ));
+		}
+		
 		$mail->Host     = config_get( 'smtp_host' );
 		$mail->From     = config_get( 'from_email' );
 		$mail->Sender   = config_get( 'return_path_email' );
patch.txt (887 bytes)   

Activities

paull

paull

2008-04-18 03:30

reporter   ~0017621

Last edited: 2008-04-18 03:30

What is the status of this issue?

All Japanese emails from the system (1.1.1) are unreadable for me.

The characterset should be ISO-2022-JP.