php - paypal 快速结帐 - 付款页面中的问号

标签 php encoding paypal

我刚刚为我的 HEBREW 网站编写了用于快速结帐的 php 脚本(数据库编码为 latin_swedish_ci,浏览器编码为 windows-1255,文件使用 notepad++ 编码为 ANSI)。

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

没有 utf8_encode:

not utf8_encode

使用 utf8_encode:

with 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 - paypal 快速结帐 - 付款页面中的问号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32960382/

相关文章:

encoding - "encoding-agnostic"的定义是什么?

php - Magento 中的 PayPal 集成

php - preg_match_all数组插入mysql数据库循环无法正常工作

php - preg_match php 错误 - 找不到结束分隔符 '^'

php - 查询未更新,不确定原因

php - 如何将utf8_general_ci编码的数据显示为json?

php - 在 PHP 中使用重命名函数时出错

python - Python 中的字符是如何编码的?

paypal - 执行付款而不将 paymetId 存储在 session 中但数据库中

echeck 的 PayPal IPN