I have created a DLL that generates XML files but eventually (not always) at the moment of opening those files in IExplorer I got this error:
"An invalid character was found in text content."
Investigating a little bit more, I have found that this has something to do with the encoding so the file has this at the top of it:
<?xml version="1.0" encoding="UTF-8"?>
And, I have tried to save it as Unicode instead of ANSI but didn´t work:
sUTF8 = StrConv(s, vbUnicode)