We have a tool that generates reports and the output is in SpreadsheetML (Excel 2003 XML Format) encoded in Shift-JIS. I’m trying to use Aspose to convert these into .xlsx. The file I get out has a lot of moji-bake in place of all the Japanese text. If I load them into Excel (which displays fine) and resave them it converts them to UTF-8 and the conversion in Aspose works fine. I’m looked through the API and I don’t see a way to set the encoding when reading the file. The beginning of the XML does specify the encoding as Shift-JIS.
I found a solution reading the xml file into a byte array and using CharSetDecoder to convert it into a UTF-16 string. That has worked for all the files I tested it on.
Hi Charles,