WordsOptionsEncoding Property
The document encoding.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.6
Syntax
public Encoding Encoding { get; set; }

Property Value

Type: Encoding
Examples
The following example demonstrates how to set Encoding when rendering Text documents.
C#
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler();
HtmlOptions options = new HtmlOptions();
options.WordsOptions.Encoding = Encoding.GetEncoding("utf-8");

string guid = "utf8encoded.docx";
List<PageHtml> pages = htmlHandler.GetPages(guid, options);
See Also