我刚刚完成了我的HEBREW网站(数据库编码是latin_swedish_ci,浏览器编码
windows-1255,使用记事本以ANSI编码的文件)的快速签名的
PHP脚本.
当我将数据(从希伯来语写成)从数据库传递到paypal时,而不是文本,我看到问号.当我在文本上使用utf8_encode显示乱码.
没有utf8_encode:
用utf8_encode:
有任何想法吗?
关键是通过引用的步骤在您的帐户内设置UTF-8
- 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.
或者,您可以在您的setExpressCheckout API有效内容中添加LocaleCode = he_IL,以将结帐页面语言更改为希伯来语