HtmlSaveOptions.Encoding
HtmlSaveOptions Encoding property. Specifies the encoding to use when exporting to HTML MHTML or EPUB. Default value is new UTF8Encodingfalse UTF8 without BOM.
HtmlSaveOptions.Encoding property
Specifies the encoding to use when exporting to HTML, MHTML or EPUB. Default value is new UTF8Encoding(false)
(UTF-8 without BOM).
public Encoding Encoding { get; set; }
Examples
Shows how to specify encoding in HTML save options.
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.Encoding = new UTF8Encoding(true);
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "HtmlSaveOptions.Encoding.html", htmlSaveOptions)
.Execute();
See Also
- class HtmlSaveOptions
- namespace Wordize.Saving
- assembly Wordize