laszlonemeth / magyarispell

Hungarian Hunspell dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hungarian hunspell files are not working with PostgreSQL

netpositive36 opened this issue Β· comments

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.