Menu

#506 (ok 3.3.2) XML export wrongly encoded

closed-fixed
1
2010-04-14
2010-03-27
No

Trying to export to XML we have a porblem with function utf8_encode() that exist in file /libraries/export/xml.php on line 340. All data in russian (utf8 or cp1251, no matter) looks like Главная.

If we will change this line:
$buffer .= ' <column name="' . $columns[$i] . '">' . htmlspecialchars(utf8_encode((string)$record[$i]))

To this one:
$buffer .= ' <column name="' . $columns[$i] . '">' . htmlspecialchars((string)$record[$i])

The problem is gone.

Discussion

  • Marc Delisle

    Marc Delisle - 2010-03-27

    Hi Victor,
    Please attach here a small SQL export of your table, I want to be sure that your data is correctly stored in the original table.

    See also http://wiki.phpmyadmin.net/pma/Garbled_data

     
  • Victor Volkov

    Victor Volkov - 2010-03-27

    2 rows with Russian text in it (utf8)

     
  • Victor Volkov

    Victor Volkov - 2010-03-27

    Yes, sure. Did upload the file with 2 rows and Russian text in it in utf8.

     
  • Victor Volkov

    Victor Volkov - 2010-03-27

    Sorry, forgot to tell you, it's phpMyAdmin 3.3.1.

     
  • Marc Delisle

    Marc Delisle - 2010-03-30
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2010-03-30
    • labels: 546627 --> Data Export
     
  • Marc Delisle

    Marc Delisle - 2010-03-30

    Moved to patches

     
  • Marc Delisle

    Marc Delisle - 2010-03-30
    • priority: 5 --> 1
    • summary: XML export problem --> (ok 3.3.2) XML export wrongly encoded
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2010-03-30

    Your patch was merged in the repository, thanks.

     
  • Marc Delisle

    Marc Delisle - 2010-04-14
    • status: open-fixed --> closed-fixed