PayPal IPN charset

fajnalowiec
Contributor
Contributor

Hi,

So I'm in charge of live legacy app which uses PP as one of the payment methods. Currently the app still uses old NVP api.
What bothers me is that in app logs I can see that whenever IPN sends something to our listener there's always a field: 

charset=windows-1252

I assume it's the source of many evil things in our app; e.g. confirming to IPN that we received the message. We have a lot of rejected confirmations (cmd=_notify-validate) by IPN which could be the problem if some characters are encoded in the IPN message by win-1252 and our app sends them back as utf-8.
So I would like to change these IPN messages to UTF-8. I've found this solution in the depths of the internet:

http://jlchereau.blogspot.com/2006/10/paypal-ipn-with-utf8.html

Is it still valid? Can you provide a link? I've tried this on my personal/sandbox account and I was unable to find it.

 

Regards,

Artur.

Login to Me Too
2 REPLIES 2

MTS_Justin
Moderator
Moderator
Hello,

https://www.paypal.com/cgi-bin/customerprofileweb?cmd=_profile-language-encoding

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Beeso27
Contributor
Contributor

I have updated my profile setting for my sandbox account to send UTF-8 encoded messages however it seems the payment details are still being sent using windows-1252 encoding. Are there any other tricks to getting this to work in the sandbox account ?

Thanks

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.