MPW
Well-known Member
- Joined
- Oct 7, 2009
- Messages
- 571
- Office Version
- 365
- Platform
- Windows
Hello,
I am creating an xml from scratch taking information from sheets in a workbook.
The workbook 3rd cell looks correct:
The individual line is added like this:
This is how it displays in the Watch window:
Here is a sample of my output:
Notice the bold lines. The English text displays fine, but the Russian version displays "?" for most characters.
Most of the languages I have worked with display correctly, however some turn out like this.
I already open the final result in NotePad++ to convert it from Ansi to UTF-8, but the text is incorrect before this stage, in the VBA code.
Part 2 of this request is "How do I convert it automatically on the export without the extra step of using NotePad++?
If you have any insight on either of these issues I will be very grateful.
Thanks in advance.
I am creating an xml from scratch taking information from sheets in a workbook.
The workbook 3rd cell looks correct:
The individual line is added like this:
VBA Code:
hsy = Sheets("Directive Lang").Cells(7, 3).Value2
strXML = lvl04 & "<heSaidText>" & hsy & "</heSaidText>"
Print #intFileNum, strXML
Here is a sample of my output:
Rich (BB code):
<ReferenceTexts>
<ReferenceTextInfo level="0">
<Language>
<iso></iso>
<name>RUSSIAN</name>
<ldml>ru</ldml>
<fontFamily>Charis SIL</fontFamily>
<fontSizeInPoints>10</fontSizeInPoints>
<heSaidText>o? ??????.</heSaidText>
</Language>
</ReferenceTextInfo>
<ReferenceTextInfo level="1" name="WEB (WEB)">
<Language>
<iso>eng</iso>
<name>English</name>
<ldml>en</ldml>
<fontFamily>Charis SIL</fontFamily>
<fontSizeInPoints>10</fontSizeInPoints>
<heSaidText>he said.</heSaidText>
Most of the languages I have worked with display correctly, however some turn out like this.
I already open the final result in NotePad++ to convert it from Ansi to UTF-8, but the text is incorrect before this stage, in the VBA code.
Part 2 of this request is "How do I convert it automatically on the export without the extra step of using NotePad++?
If you have any insight on either of these issues I will be very grateful.
Thanks in advance.