jpintor
jpintor

Reputation: 419

Paypal form with special characters

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

Answers (2)

jpintor
jpintor

Reputation: 419

Finally I added accept-charset="ISO-8859-1" in the form and solved the problem.

Upvotes: 2

MarcinWolny
MarcinWolny

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

Related Questions