Hi all,
I have an issue regarding encoding in a XML file. I'm using scandinavian letters like "æ, ø, å"... and these are doing the damage.
I loop a selection based on several rows testing if the text are bold etc.
This is the start of my VBA code:
There are no error when I check the XML file in Notepad++, but when I do the same in e.g. XML Notepad or Firefox i get an error. The error message translated from Danish to English are: "Interpreting XML error: not well-formed" and it highlights the "æ" <-- danish letter.
I have tried changing the encoding from UTF-8 to UTF-16 and ISO-8859-1 but it doesn't help...
What to do?
/Anders
I have an issue regarding encoding in a XML file. I'm using scandinavian letters like "æ, ø, å"... and these are doing the damage.
I loop a selection based on several rows testing if the text are bold etc.
This is the start of my VBA code:
Code:
Open "C:\test.xml" For Output As #1
Print #1, "<xml version=""1.0"" encoding=""UTF-8"">"
then it loops through several cells and adds <strong>text</strong> etc.
There are no error when I check the XML file in Notepad++, but when I do the same in e.g. XML Notepad or Firefox i get an error. The error message translated from Danish to English are: "Interpreting XML error: not well-formed" and it highlights the "æ" <-- danish letter.
I have tried changing the encoding from UTF-8 to UTF-16 and ISO-8859-1 but it doesn't help...
What to do?
/Anders