Reputation: 1039
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.
Upvotes: 8
Views: 2832
Reputation: 19356
You can set the encoding for IPN via Account Settings > Website Payments > 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
Upvotes: 12