UTF8 issue


#1

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 !


#2

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


#3

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