HtmlFixedSaveOptions.Encoding
HtmlFixedSaveOptions Encoding property. Specifies the encoding to use when exporting to HTML. Default value is new UTF8Encodingtrue UTF8 with BOM
HtmlFixedSaveOptions.Encoding property
Specifies the encoding to use when exporting to HTML. Default value is new UTF8Encoding(true)
(UTF-8 with BOM)
public Encoding Encoding { get; set; }
Examples
Shows how to specify encoding in HtmlFixed save options.
HtmlFixedSaveOptions htmlFixedSaveOptions = new HtmlFixedSaveOptions();
// Skip writing BOM in the output HtmlFixed file.
htmlFixedSaveOptions.Encoding = new UTF8Encoding(false);
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "HtmlFixedSaveOptions.Encoding.html", htmlFixedSaveOptions)
.Execute();
See Also
- class HtmlFixedSaveOptions
- namespace Wordize.Saving
- assembly Wordize