Technote Details :: When I try to import an XML with a different encoding I get an error

Issue

When I try to import an XML file, I get an error message saying:

Could not perform charset conversions. Enable the \'mbstring\' extension.

Reason

This happens because the encoding detected in the XML file is not the same as the one specified for the database. To convert encoding you must have the mbstring extension loaded and enabled.

Solution

To be able to change encoding you must enable the mbstring extension:

  1. Locate the php.ini file (usually in c:\windows). Open it with any text editor.
  2. Find the line that reads: ;extension=php_mbstring.dll
  3. Enable the extension by removing the semicolon at the beginning. Save and close the file.
  4. Restart your web server for the changes to take effect.

If you cannot enable the extension (e.g. you are using a shared hosting environment), edit the XML file and set the correct encoding.


Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.