php – paypal express checkout – 付款页面上的问号

前端之家收集整理的这篇文章主要介绍了php – paypal express checkout – 付款页面上的问号前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我刚刚完成了我的HEBREW网站(数据库编码是latin_swedish_ci,浏览器编码 windows-1255,使用记事本以ANSI编码的文件)的快速签名的 PHP脚本.

当我将数据(从希伯来语写成)从数据库传递到paypal时,而不是文本,我看到问号.当我在文本上使用utf8_encode显示乱码.

没有utf8_encode:

用utf8_encode:

有任何想法吗?

关键是通过引用的步骤在您的帐户内设置UTF-8
  1. Login to your PayPal account
  2. Navigate to “My Account Overview -> Profile -> My Selling Tools” section.
    Within “More Selling Tools” click the “PayPal Button Language
    Encoding” link.
  3. Ensure that setting for “Your website’s language” is
    correct.
  4. 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)?”.
  5. Click “Save” to save your changes.

或者,您可以在您的setExpressCheckout API有效内容添加LocaleCode = he_IL,以将结帐页面语言更改为希伯来语

猜你在找的PHP相关文章