save worksheet with chinese characters as text

B

bdelegan

I use a data table in a worksheet in combination with VBA to generate
XML configuration files. Using VBA, I format the XML in a temp
workbook and then save the temp workbook as XML using the following:
ActiveWorkbook.SaveAs Filename:=thedir + thefile,
FileFormat:=xlTextPrinter, CreateBackup:=False

This has worked perfect for English, French, etc. However, it does not
work for Chinese Mandarin or other character-based languages. When I
save using FileFormat:=xlTextPrinter, I get ? for the characters. I've
tried several other file formats. xlTextPrinter is the only file
format that gives me a clean/correct XML file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top