加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

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

发布时间:2020-12-13 14:00:26 所属栏目:PHP教程 来源:网络整理
导读:我刚刚完成了我的HEBREW网站(数据库编码是latin_swedish_ci,浏览器编码 windows-1255,使用记事本以ANSI编码的文件)的快速签名的 PHP脚本. 当我将数据(从希伯来语写成)从数据库传递到paypal时,而不是文本,我看到问号.当我在文本上使用utf8_encode显示乱码. 没
我刚刚完成了我的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,以将结帐页面语言更改为希伯来语

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读