Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Mongodb - non-UTF8 #18

Open
ThorvaldtM opened this issue May 7, 2013 · 3 comments
Open

Mongodb - non-UTF8 #18

ThorvaldtM opened this issue May 7, 2013 · 3 comments

Comments

@ThorvaldtM
Copy link

Getting error to register transaction with buyer having non-UTF8 names which is not supported by mongodb.
first_name and last_name in ipn_orders need to be converted to a valid UTF8 String

@alexanderdean
Copy link
Contributor

Thanks for raising @ThorvaldtM - pull request welcome.

@piscis
Copy link
Contributor

piscis commented May 13, 2013

Hi I had the same problem as a quick fix you can try to enforce the encoding on your paypal profile for your IPN listener. In my case I had to switch to UTF-8 to make it work with MongoDB.

You´ll find the settings after you login to your Paypal account by going to: Profile -> More? -> My selling tools -> "PayPal button language encoding" (grey box near the footer)

On the language encoding site there is a button "More Options" it will take you to a page called "More Encoding Options" see screenshot

In my case I had to change from "windows-1252" to "utf-8".

Anyhow I think its a good idea to have some sort of config value that takes the input encoding and converts it to "utf-8" for MongoDB

@ThorvaldtM
Copy link
Author

Thanks for the tip. I guess this doesn't need to be implemented in this module then. I leave it to @alexanderdean to decide then.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants