Donator names are not stored with the proper charset

hongli's Avatar

hongli

21 Feb, 2009 11:02 AM via web

Donators' names are not stored with the proper charset. For example, on http://pledgie.com/campaigns/2975/detail, the name "Guillermo Alcántara" shows up as "Guillermo Alc�ntara". Saving the HTML file to disk and changing the content-type tag to iso-8859-1 made the browser display the names properly. This seems to imply that the names are stored in your database as iso-8859-1 instead of UTF-8, as they should be.

  1. Support Staff 2 Posted by Garry Dolley on 22 Feb, 2009 11:16 PM

    Garry Dolley's Avatar

    No, we've tried storing names at UTF-8 and while it fixes some names, others then break (that were working before).

    I suspect PayPal is providing names in different character sets, depending on the locale of the user.

    We need to detect the charset (which is provided), convert it to UTF-8, and then save that.

    This is in our TODO list.

  2. 3 Posted by hongli on 22 Feb, 2009 11:41 PM

    hongli's Avatar

    A Paypal IPN has a parameter called "charset", maybe that's what you're looking for?

  3. Support Staff 4 Posted by Garry Dolley on 23 Feb, 2009 12:10 AM

    Garry Dolley's Avatar

    I am aware of the "charset" parameter (I said "which is provided"). We need to convert from the charset to UTF-8 and save that. It is on our TODO list.

  4. 5 Posted by qubodup on 09 Jun, 2009 09:56 PM

    qubodup's Avatar

    another example: http://pledgie.com/campaigns/4045 : donator #5 has an unknown symbol in his name. I assume it should be "ö"

Reply to this discussion

Internal reply

Formatting help or Preview

Attached Files

You can attach files up to 10MB

What is the opposite of bad?

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.