Guest Posted May 10, 2007 Share Posted May 10, 2007 Have a problem - my shop and articles description are in russian, and when when confirmation email reaching customer the products ordered are shown in alt-coding. I.e. & #1054;& #1073;& #1083;& #1077;& #1087;иха instead of normal name. Any ideas how to avoid it? Thanks Dimitry Link to comment Share on other sites More sharing options...
oschellas Posted May 10, 2007 Share Posted May 10, 2007 In includes/classes/email.php on line 493 just before this code: $to = (($to_name != '') ? '"' . $to_name . '" <' . $to_addr . '>' : $to_addr); $from = (($from_name != '') ? '"' . $from_name . '" <' . $from_addr . '>' : $from_addr); add: /* tommod encoding charset */ $tommod_encoding = strtolower(constant('CHARSET')); if($tommod_encoding=="iso-8859-7"){ mb_internal_encoding("iso-8859-7"); $subject = mb_encode_mimeheader($subject, "iso-8859-7", "q"); $from_name = mb_encode_mimeheader($from_name, "iso-8859-7", "q"); } Note: replace iso-8859-7 with the charset you are using. You could apply the same to the admin email class. Link to comment Share on other sites More sharing options...
Guest Posted May 10, 2007 Share Posted May 10, 2007 Thank you! It works Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.