PDA

View Full Version : osCommerce Emails Charset problems



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

charlesgan
05-17-2007, 10:57 AM
what .. error you receiving??

basically, meanign you need to create a file named "php.ini" and paste in those content. and upload to server. thus, this will allow your email to appear in unicode

previously i wrote an article on how to solve this for email unicode
http://www.hostmonsterreview.org/hostmosnter-email-content-with-unicode-support

luisfc
05-17-2007, 12:10 PM
I receive errors like this:
This was a test mail send by osCommerce to a test client:

Dear Mr. diás,
We welcome you to Beleza e Cosméticos.

You can now take part in the various services we have to offer you. Some of
these services include:

Permanent Cart - Any products added to your online cart remain there until you
remove them, or check them out.
Address Book - We can now deliver your products to another address other than
yours! This is perfect to send birthday gifts direct to the birthday-person
themselves.
Order History - View your history of purchases that you have made with us.
Products Reviews - Share your opinions on products with our other customers.

For help with any of our online services, please email the store-owner:
root@localhost.

Note: This email address was given to us by one of our customers. If you did not
signup to be a member, please send an email to root@localhost.


The bolded words should be "diás" and "Cosméticos".
How can i fix this errors??

Thanks,
Luís