[xmonad] X.A.Search & UTF8

Konstantin Sobolev konstantin.sobolev at gmail.com
Tue Dec 1 12:59:52 EST 2009


Hello,

I'm trying out X.A.Search and as I can see it doesn't work with
non-latin characters out of the box. For instance cyrillic text gets
converted into some hex-looking mess. The following fixes it for me,
but I'm not sure if we can add a dependency on  utf8-string:

+ import Codec.Binary.UTF8.String ( utf8Encode )
...
- searchEngine name site = searchEngineF name (\s -> site ++ (escape s))
+ searchEngine name site = searchEngineF name (\s -> site ++
(utf8Encode (escape s)))


More information about the xmonad mailing list