Hi,
When I try to convert a Shift_JIS encoded text file to pdf, Japanese characters are displayed as garbled characters. Even if I set encoding, I get the same result. The file is created with sakura editor.
com.aspose.words.LoadOptions options = new com.aspose.words.LoadOptions();
options.setLoadFormat(com.aspose.words.LoadFormat.TEXT);
options.setEncoding(Charset.forName("Shift_JIS"));
Document document = new Document(decompressInput);
WordsFontWarning warning = new WordsFontWarning();
document.setWarningCallback(warning);
document.setFontSettings(fontSettings);
document.save(outputStream, SaveFormat.PDF);
sjis-ecncode.7z (153 Bytes)
What should I do get a correct pdf?
Regards,
Raz