Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#410 ajax-ac-insert.php return malformed UTF-8 strings

5.0.2
open
General (123)
5
2011-06-01
2011-05-25
Xiguang Wang
No

The database is set to UTF-8 encoding. When inserting a row with confinsertrow action and a foreign key's value is UTF-8(especially, in Chinese), the auto-generated list is wrong decoded.

I've traced through JS and PHP files, and found that a htmlentities() function is called without encoding message.

I've uploaded a patch to solve this problem. This patch only detect UTF-8, and not tested with other encoding. It just shows where the problem is.

Discussion

  • Xiguang Wang
    Xiguang Wang
    2011-05-25

    a demo patch, for personal use only, may cause more bugs.

     
  • Thank you for your patch.

    I'll study this closely. I am thinking about refactoring phpPgAdmin to use UTF-8 only strings all over the place, so I guess this is a valuable patch.

     
    • assigned_to: nobody --> ioguix