[Pyenchant-users] Issue with (personal) dict with extended characters in path (Win32)
Brought to you by:
rynklly
From: Fredrik C. <fre...@gm...> - 2008-04-07 14:33:15
|
Hi, If you have a dict located in a path with extended (Unicode) characters enchant raises "enchant.Error: Couldn't open personal wordlist". e.g Dict is placed in "c:\personal_dict\åäö\personal_dictionary.txt". Code: ------------------ import enchant dict = enchant.DictWithPWL('en-US',u'c:/personal_dict/\xe5\xe4\xf6/personal_dictionary.txt') ------------------ Result: ------------------ Traceback (most recent call last): File "<stdin>", line 1, in <module> File "c:\python25\lib\site-packages\enchant\__init__.py", line 708, in __init__ self.pwl = self._broker.request_pwl_dict(pwl) File "c:\python25\lib\site-packages\enchant\__init__.py", line 305, in request_pwl_dict self._raise_error(eStr % (pwl,)) File "c:\python25\lib\site-packages\enchant\__init__.py", line 218, in _raise_error raise eclass(err) enchant.Error: Couldn't open personal wordlist 'c:/personal_dict/├Ñ├ñ├╢/personal_dictionary.txt' ------------------ Is it a enchant bug or pyenchant and what encoding does enchant expect? Regards, Fredrik |