问题描述
我正在一个试图将日语商品名称传递给Paypal的网站上此表格
I am working on a site that is trying pass a japanese item name to paypal throughthis form
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input name="cmd" value="_xclick" type="hidden">
<input name="item_name" value="フォトグラフィー基礎コース" type="hidden">
<input name="amount" value="59000" type="hidden">
<input name="currency_code" value="JPY" type="hidden">
<input type="hidden" name="item_number" value="PHP001">
<input name="no_note" value="0" type="hidden">
<input type="hidden" name="lc" value="ja_JP">
<input name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest" type="hidden">
<input class="coursepayment" name="submit" value="今すぐ購入" alt="PayPal - The safer, easier way to pay online!" border="0" type="submit">
</form>
但项目名称显示为:•ã©©°¹¹¹¹有办法解决这个问题吗?
But the Item name comes out reading:フォトグラフィー基礎コースIs there a way to fix this?
推荐答案
请参阅文档以了解form方法: https ://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/#setting-the-character-set--charset
See the documentation for the form method:https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/formbasics/#setting-the-character-set--charset
使用charset HTML变量指定字符集和 帐单信息/登录页面上的字符编码 贝宝网站.此外,此变量为 您以HTML按钮代码发送给PayPal的信息.
Use the charset HTML variable to specify the character set and character encoding for the billing information/log-in page on the PayPal website. In addition, this variable sets the same values for information that you send to PayPal in your HTML button code.
例如,以下INPUT标记将编码设置为UTF-8:
For example, the following INPUT tag sets the encoding to UTF-8:
< INPUT TYPE ="hidden" name ="charset" value ="utf-8">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input name="cmd" value="_xclick" type="hidden">
<input type="hidden" name="charset" value="utf-8">
<input name="item_name" value="フォトグラフィー基礎コース" type="hidden">
<input name="amount" value="59000" type="hidden">
<input name="currency_code" value="JPY" type="hidden">
<input type="hidden" name="item_number" value="PHP001">
<input name="no_note" value="0" type="hidden">
<input type="hidden" name="lc" value="ja_JP">
<input name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest" type="hidden">
<input class="coursepayment" name="submit" value="今すぐ購入" alt="PayPal - The safer, easier way to pay online!" border="0" type="submit">
</form>
这篇关于www.paypal.com/jp/cgi-bin/webscr? item_name编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!