Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

confirmation email products language


Guest

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...