Moolah icon indicating copy to clipboard operation
Moolah copied to clipboard

UTF-8 string get garbled

Open fnicollier opened this issue 12 years ago • 4 comments

UTF-8 strings like in order detail item names get garbled when displayed in Paypal's express checkout.

fnicollier avatar Feb 06 '13 14:02 fnicollier

Apologies for taking a while to look into this - do you have a recent example? Could you provide me with the item name input and how it turned out?

davidduffett avatar Dec 12 '13 04:12 davidduffett

French accents don't show well in the Paypal checkout like "éèà" get garbled. Sorry I don't remember the exact output at the moment.

fnicollier avatar Dec 12 '13 07:12 fnicollier

Example of this: passing the product name "Hosé àssémbly (Silver/Yellow)" resulted in PayPal displaying "Hos%u00e9 %u00e0ss%u00e9mbly (Silver/Yellow)"

davidduffett avatar Dec 29 '13 21:12 davidduffett

It seems that just setting Encoding.UTF8 on the name value collection is not enough - you need to login to the PayPal profile and change the language encoding there too... http://blog.tentaclesoftware.com/archive/2010/04/09/87.aspx

davidduffett avatar Dec 29 '13 22:12 davidduffett