Hungarian hunspell files are not working with PostgreSQL
netpositive36 opened this issue Β· comments
netpositive36 commented
I've tried to use Hungarian hunspell files from (debian) package for text search in PostgreSQL. I've copied them into their directory and tried to load them but no success π
monkee=# CREATE TEXT SEARCH DICTIONARY hungarian_hunspell (
TEMPLATE = ispell,
DictFile = hu_HU,
AffFile = hu_HU,
StopWords = hungarian
);
ERROR: invalid byte sequence for encoding "UTF8": 0xe1 0x73 0x7a
CONTEXT: line 5 of configuration file "/usr/share/postgresql/10/tsearch_data/hu_hu.affix"
The test system was an up-to-date Debian 9, packages: hunspell-hu, PostgreSQL 10.9.
How could I create / generate working files for PostgreSQL? Any tip or info is welcome.
Balint Reczey commented