Fix encoding issues
authorMikael Berthe <mikael@lilotux.net>
Tue, 01 May 2007 23:58:21 +0200
changeset 16 7a3843e91aa2
parent 15 c7bc5fcabc81
child 17 069f7fd5545d
Fix encoding issues
plugins/aspell_plugin.py
--- a/plugins/aspell_plugin.py	Tue May 01 23:17:36 2007 +0200
+++ b/plugins/aspell_plugin.py	Tue May 01 23:58:21 2007 +0200
@@ -19,11 +19,12 @@
 
     stdout, stdin = popen2.popen2(aspell)
 
-    stdin.write(parameters)
+    stdin.write(parameters.encode('iso-8859-15'))
     stdin.close()
 
     r = stdout.readline()
     for r in stdout.readlines():
+	r = r.decode('iso-8859-15')
         if r == "*\n":
             reply += "* Word correctly spelled.\n"
         elif r.startswith("& "):