We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert html to word problem

I have html file with inline style and charset=windows-1252


However, the following line

"Nev. Rev. Stat. § 482.318"

becomes strange.

The Code I am using is

	Aspose.Words.LoadOptions option = new Aspose.Words.LoadOptions();
option.Encoding = Encoding.GetEncoding(1252);
      <span style="color:#2b91af;">Stream</span> s = GenerateStreamFromString(statuteDataHtml);
      Aspose.Words.<span style="color:#2b91af;">Document</span> document = <span style="color:blue;">new</span> Aspose.Words.<span style="color:#2b91af;">Document</span>(s  );

      document.Save(filename,Aspose.Words.<span style="color:#2b91af;">SaveFormat</span>.Docx );
      s.Flush();
      s.Dispose();</pre></div>

Hi Bill,

Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for .NET 14.11.0 and have not found the shared issue. Please use Aspose.Words for .NET 14.11.0. I have attached the output Docx with this post for your kind reference.

Please let us know if you have any more queries.