Property Encoding
Encoding
Gets or sets the code page to decode literal bytes with, overriding the document's own
\ansicpg and any font charset. Null (the default) honours the document.
public int? Encoding { get; set; }
Property Value
- int?
Remarks
A file whose declaration lies is the reason this exists: RTF produced by export
pipelines routinely says \ansicpg1252 over bytes that are something else.
Exceptions
- ArgumentOutOfRangeException
The value is not positive.