Hi there,
.NET 6.0, Syncfusion 19.3.0.57,
I am trying to load a Hunspall dictionary to SpellChecker. It says
Message=An item with the same key has already been added. Key: �
This seems to me a codepage issue. This is the hunSpell dict from LibreOffice. It is UTF-8.
If I convert it to Unicode, it loads nicely but has no effect. Spellchecker still checks in English.
_pathResources = Path.Combine(_pathStartup, "Resources");
CultureInfo culture = new CultureInfo("hu-HU");
_spellChecker.Dictionaries = new DictionaryCollection
{
new HunspellDictionary
{
Culture = culture,
GrammarUri = new Uri(Path.Combine( _pathResources, "hu_HU.aff" ), UriKind.Absolute),
DictionaryUri = new Uri(Path.Combine( _pathResources, "hu_HU.dic" ), UriKind.Absolute),
},
};
_spellChecker.Culture = culture;
SfSpellChecker.SetSpellChecker(TextEditor, _spellChecker);