UTF-8 and ispell

G. Milde milde at users.sourceforge.net
Wed Sep 19 14:20:21 UTC 2007

On 19.09.07, Rafael Laboissiere wrote:
> I recently decided to switch my system completely to UTF-8 but I ran into a
> problem with jed and ispell.  When I switch to any language with non-ascii
> characters (i.e. any one other than English :-)) jed refuses to check words
> and gives the error message: "Invalid UTF-8 encoded string".  I think that
> the problem comes from the the argument "letters" passed to
> ispell_add_dictionary in /var/cache/dictionaries-common/jed-ispell-dicts.sl.
> This later file is automatically generated by the dictionaries-common
> package.  

> We should find a way to initialize the dictionaries with proper
> arguments.  

Maybe reconfiguring dictionaries-common after the switch to UTF8 helps?

> My first question is: how to detect in a S-Lang script whether
> jed is running in a UTF-8 environment?

   if (_slang_utf8_ok)

You might try

   % convert encoding
   if (_slang_utf8_ok)

with latin1_to_utf8 from jedmodes.sf.net/mode/utf8helper/ but I assume that
the proper fix would be change the template generating jed-ispell-dicts to
use utf8-encoded dictionaries instead of the latin1 ones if


More information about the Pkg-jed-devel mailing list