Search code examples
c#encodingpaypalpaypal-ipn

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.


Solution

  • 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