Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Identify which encoding PayPal IPN uses?

I am having some issues with PayPal IPN. The documentation uses ASCII encoding. I am using UTF-8. It works fine but as a rarest case I get some random characters. As far as I know the Paypal account can be setup for different encoding. Is there any way to identify that?.

Or is there a standard way of handling all the cases.

like image 848
tmjam Avatar asked Dec 22 '11 20:12

tmjam


2 Answers

You can set the encoding for IPN via Profile > My selling tools > PayPal button language encoding > More Options. (direct link)

The IPN message itself contains a 'charset' field as well which you can check against. See also https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro#id091F0M006Y4

like image 70
Robert Avatar answered Nov 14 '22 03:11

Robert


I see this as a part of the solution.

specifying the encoding method used in the form we send to paypal

<INPUT TYPE="hidden" name="charset" value="utf-8">

This link is more helpful

like image 41
tmjam Avatar answered Oct 28 '22 10:10

tmjam