Tagged: Traditional Chinese
October 13, 2010 at 6:09 pm #2029
My product name are in Traditional Chinese, it works normally in wordpress, but when I click the PayPal Checkout button, it brought me to PayPal and the product descriptions in PayPal order summary became unreadable garbage characters, I don’t think this is a PayPal issue, since I used to bought from some sites with Traditional Chinese product name without any problem.
My question is:
In eStore, how can I use Traditional Chinese as product name and description and user can still see the correct name/description in their PayPal checkout?
BTW, I ever tried to save the eStore_payment_submission.php to UTF-8, but it showed error message and didn’t work.
Thank you!October 14, 2010 at 12:30 am #25413
You don’t need to save the “PHP” files in UTF-8.
Have you set the language correctly in your PayPal profile? Does it go to the US version of PayPal when you checkout?October 14, 2010 at 8:05 am #25414
I did following steps:
1) Log into your PayPal account
2) Go to your profile
3) Under the selling preferences column, select Language Encoding
4) Select Western European Languages
5) Click the more options button
6) Select encoding is set to UTF-8.
7) Then save settings
Now, the “Buy Now” function can show product name in Chinese in Paypal correctly, however it showed me this message when I use the Add to Cart -> Paypal Checkout:
“Data does not match input character set or default encoding. For more information, please contact the merchant.”
But why I change the Product Name to English, it it OK again, however I do need to use Chinese product name for my customers.
Any idea for what makes the difference?
The Paypal document said I should add this code in the form:
<INPUT TYPE=”hidden” name=”charset” value=”utf-8″>
But I am not sure where to add it.
I guess all the non-roman language users will have the same issue, could you help?
Thanks!October 15, 2010 at 12:04 am #25415
Lets try this. Open the “eStore_payment_submission.php” file and search for the following:
Once you find it add the following line just above the line you searched for:
Let me know if that helps. If it doesn’t please post your product name (in your language) so I can copy it and test it on my test server.October 15, 2010 at 2:20 pm #25416
I did the changes but still have the same issue, I used English first, and it’s ok, but then changed to Chinese product name, then the error “Data does not match input character set or default encoding. For more information, please contact the merchant.” showed, I then rename the product name back to English and it was OK again.
The product name I used was: 中文產品名稱
Could you help to test in your end?
Thank you!October 16, 2010 at 1:06 am #25417
My database format that I use on my test site doesn’t support this language.
Are you sure it’s a “UTF-8” language? Because I would think that adding the charset field would fix it as suggested by PayPal.
Anyway, lets try the following:
Remember how you added the charset field earlier? Try using the case sensitive version. So add the following:
If that doesn’t work then try the following. Change UTF-8 to ISO-8859-1
$myPaypal->addField('charset', "ISO-8859-1");October 16, 2010 at 9:12 am #25418
It still didn’t work for both changes with same error message.
I am using English product name for workaround, hope there will be a fix or something else in the future.
Thank you anyway!September 20, 2011 at 1:35 am #25419
- You must be logged in to reply to this topic.