Guest Posted February 13, 2007 Share Posted February 13, 2007 Hi We have a dedicated server running our OSC store, its and apache server I think. Anyway, when we send an email via our store with any special characters in it such as £, ?,! etc, the email has lots of weird symbols EXAMPLE - It has arrivedâ?¦.. After contacting our server support, I was told that - The issue with your email is the email encoding. I cannot make server side changes without breaking the £ sign in your website. You will need to update the shop script that sends out the email to include the email header: Content-Type: Text/plain; charset=ISO-8859-1 or Content-Type: Text/plain; charset=UTF-8 What files do I need to change to make everything work fine? Thanks a million guys Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2007 Share Posted February 13, 2007 You will need to update the shop script that sends out the email to include the email header: Content-Type: Text/plain; charset=ISO-8859-1 Content-Type: Text/plain; charset=UTF-8[/i] What files do I need to change to make everything work fine? You have not speicifed *exactyl* which emails you are refering to. After ordering ? after registering ? newsltters ? Anyway - the file you most likely need is : /admin/includes/classes/email.php I've never used in OSC, but in other apps I have. You should be able to concatenate the headers - OR you can try changing the build_params array. Try both - back up first. :-D change this : $this->build_params['html_encoding'] = 'quoted-printable'; to this : $this->build_params['html_encoding'] = 'ISO-8859-1'; or this : $this->build_params['html_encoding'] = 'UTF-8'; OR --------------- change this : $this->headers[] = 'MIME-Version: 1.0'; to this : $this->headers[] = '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'; Or - you could always send using gthe ASSCI code - just takes a bit of getting used to : http://tlt.its.psu.edu/suggestions/interna...b/codehtml.html So - you email becomes : "you owe us &163; 300 000" hth, Corrie Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2007 Share Posted February 14, 2007 You have not speicifed *exactyl* which emails you are refering to. After ordering ? after registering ? newsltters ? Anyway - the file you most likely need is : /admin/includes/classes/email.php I've never used in OSC, but in other apps I have. You should be able to concatenate the headers - OR you can try changing the build_params array. Try both - back up first. :-D change this : $this->build_params['html_encoding'] = 'quoted-printable'; to this : $this->build_params['html_encoding'] = 'ISO-8859-1'; or this : $this->build_params['html_encoding'] = 'UTF-8'; OR --------------- change this : $this->headers[] = 'MIME-Version: 1.0'; to this : $this->headers[] = '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'; Or - you could always send using gthe ASSCI code - just takes a bit of getting used to : http://tlt.its.psu.edu/suggestions/interna...b/codehtml.html So - you email becomes : "you owe us &163; 300 000" hth, Corrie Hi Thanks for your help, its all emails that are affected, even if I just send an email via the 'email customers' option in OSC. Should I still proceed with the above? Thanks a lot Link to comment Share on other sites More sharing options...
Guest Posted February 14, 2007 Share Posted February 14, 2007 Hi Thanks for your help, its all emails that are affected, even if I just send an email via the 'email customers' option in OSC. Should I still proceed with the above? Yes - for sure! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.