luisfc
05-17-2007, 09:24 AM
Hi,
I’m trying to set up a osCommerce online store in my Hostmonster account but I am having some problems. When I try t send e-mails in my native language, Portuguese, e-mails are not sending out in the correct character sets. I had tried to follow this solution found in Hostmonster Knowledgebase but I cant put it to work properly:
This is a known issue with our servers. We are working to resolve this.
In the meantime, you can fix your immediate concerns by overriding php's mail() function, to encode the emails to a given character set. You can add the following to your php.ini, to do this:
[mbstring]
mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = long;
mbstring.func_overload = 1
This is for utf8. You can take a look at php.net's mbstring page, located here: http://www.php.net/manual/en/ref.mbstring.php for specific language options.
PLEASE NOTE!!!: Unfortunately, simply adding this information to your php.ini will not resolve all of your issues. Please contact the maker of your script, and confirm what settings you may need to add as the subject and body may be encoded differently. Fortunately the majority of the makers of common and well known scripts have helpful forums and FAQ’s.
Can any one help? Its important to my to put this site working! My char set is iso 8859-1. And when I tri to follow the solution given by Hostmonster I receive the same error.
Thanks, and sorry for may bad English….
Luís
I’m trying to set up a osCommerce online store in my Hostmonster account but I am having some problems. When I try t send e-mails in my native language, Portuguese, e-mails are not sending out in the correct character sets. I had tried to follow this solution found in Hostmonster Knowledgebase but I cant put it to work properly:
This is a known issue with our servers. We are working to resolve this.
In the meantime, you can fix your immediate concerns by overriding php's mail() function, to encode the emails to a given character set. You can add the following to your php.ini, to do this:
[mbstring]
mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = long;
mbstring.func_overload = 1
This is for utf8. You can take a look at php.net's mbstring page, located here: http://www.php.net/manual/en/ref.mbstring.php for specific language options.
PLEASE NOTE!!!: Unfortunately, simply adding this information to your php.ini will not resolve all of your issues. Please contact the maker of your script, and confirm what settings you may need to add as the subject and body may be encoded differently. Fortunately the majority of the makers of common and well known scripts have helpful forums and FAQ’s.
Can any one help? Its important to my to put this site working! My char set is iso 8859-1. And when I tri to follow the solution given by Hostmonster I receive the same error.
Thanks, and sorry for may bad English….
Luís