UTF8 issue

Hi Juce team,

I retrieve from the Windows registry a string that contains an XML text.
This XML file uses UTF8 encoding given it’s header: <?xml version="1.0" encoding="UTF-8"?>

Unfortunately the string read from getStringAttribute of an XMLElement are not in UTF-8.

Does the XMLDocument ctor that uses a String check the actual document encoding ?

Thanks !

From XMLDocument comments, it looks the default is UTF8 so the issue probably happen in juce::WindowsRegistry::getValue that do not handle UTF8 values ?

nevermind, the issue was that the value stored in the registry do not use wide char and was containing non ANSI char