Skip to main content

SpellCheckerDictionaryBase.Encoding Property

Gets or sets the dictionary text encoding.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v14.2.Core.dll

#Declaration

[TypeConverter("DevExpress.XtraSpellChecker.Design.EncodingTypeConverter,DevExpress.XtraSpellChecker.v14.2.Design")]
public Encoding Encoding { get; set; }

#Property Value

Type Description
Encoding

A Encoding object that represents the character encoding.

#Remarks

By default, the Encoding is UTF-8.

The encoding parameter affects the construction of the dictionary and the search for a suggestion, so when it is changed, the dictionary is re-loaded.

NOTE

The only supported encodings in Silverlight are: System.Text.Encoding.UTF8, System.Text.Encoding.Unicode, System.Text.Encoding.BigEndianUnicode.

By default, external dictionaries used to create SpellCheckerISpellDictionary and SpellCheckerOpenOfficeDictionary are of the locale-specific encoding type. You are advised to convert them to UTF-8 before loading via the SpellCheckerISpellDictionary.LoadFromStream or the SpellCheckerOpenOfficeDictionary.LoadFromStream methods. This can be accomplished by opening the dictionary file in the standard Windows Notepad and saving it in UTF-8 encoding.

See Also