我正在使用 vba 宏将数据从 excel 文件导出到 xml 文件。
With Worksheets("Worksheet1")
XMLFileName = "C:\Workspace\Test.xml
idx_string = 1
Open XMLFileName For Output As #1
Print #1, XMLFileHeader
Print #1, "<resources>"
While (.Range("Base_Menue_strings").Cells(idx_string, 1) <> "")
Print #1, " <string name=" & Quotation & .Range("Base_Menue_strings").Cells(idx_string, 1) & Quotation & ">" & Quotation & .Range("Strings").Cells(idx_string, idx_lang) & Quotation & "</string>"
idx_string = idx_string + 1
Wend
Print #1, "</resources>"
Close #1
End With
但是在 xml 文件中,我发现了这个,而不是希腊字符:
<resources>
<string name="dial_mode">"?e?t?????a ???s??"</string>
<string name="flash_duration">"?????e?a epa?????s??"</string>
<string name="pabx_title">"????eµa PABX "</string>
<string name="pabx_status">"?at?stas?"</string>
</resources>
有人知道如何解决这个问题吗?谢谢