Reputation: 419
I'm sending a post form to paypal with custom text parameters. I checked my vars before send the form and the special characters are ok.
But in the paypal page (register option) the text appears ("Ocón") encoded in utf8("Ocón").
I tried to decoded it before send, but only was worst ("Oc�n")
Any idea?
Upvotes: 0
Views: 322
Reputation: 419
Finally I added accept-charset="ISO-8859-1" in the form and solved the problem.
Upvotes: 2
Reputation: 1645
Use iconv:
echo iconv( 'UTF-8' , 'ISO-8859-1' , 'Ocón');
adjusting encodings to your website. It worked fine for me.
Upvotes: 1