Free Support Forum - aspose.com

Thai language is showing as square in word document

We are having issue to generate a Word document by using ASPOSE Word from html file.
Thai issue.zip (5.8 KB)

@mahsan1

Thanks for your inquiry. Please make sure you are using latest version of Aspose.Words API.

You can achieve desired results by using following code:

    HtmlLoadOptions opts = new HtmlLoadOptions();
    opts.Encoding = Encoding.UTF8;
    Document doc = new Document("D:\\Temp\\Documents\\Smart Report of thai issue.html", opts);
    doc.Save("D:\\Temp\\Documents\\18.11.docx"); 

Please check document for your reference. 18.11.zip (5.0 KB)