I just finished writing my php script for express checkout for my HEBREW website (database encoding is latin_swedish_ci, browser encoding windows-1255, files encoding in ANSI with notepad++).
When I pass data (written in hebrew) from the database to paypal, instead of text I see question marks. When I used utf8_encode on the text it showed gibberish.
no utf8_encode:
with utf8_encode:
Any ideas?
The key is to set UTF-8 inside your account, by the quoted steps
- Login to your PayPal account
- Navigate to "My Account Overview -> Profile -> My Selling Tools" section. Within "More Selling Tools" click the "PayPal Button Language Encoding" link.
- Ensure that setting for "Your website’s language" is correct.
- Click the "More Options" button, select the "UTF-8" option for "Encoding" and leave the "Yes" option selected for "Do you want to use the same encoding for data sent from PayPal to you (e.g., IPN, downloadable logs, emails)?".
- Click "Save" to save your changes.
Optionally, you may add LocaleCode = he_IL
in your setExpressCheckout API payload, to change the checkout page language to Hebrew as well
Can you try the following:
<meta charset="utf-8">
inside your html <head>
of your webpage.utf-8
inside your paypal account.Log in to your PayPal Account click 'My selling preferences click on Update next to Language encoding on the next page choose Western European Languages and click on more Options Choose in both drop-down menues UTF-8 and click on save
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With