Permalink
Browse files

added unicode conversion before sending to client

Signed-off-by: Niklas Rosenstein <rosensteinniklas@googlemail.com>
  • Loading branch information...
1 parent 6979b8e commit 3c8fa270ac822ace4a166ca1718d7d8d8453e707 @NiklasRosenstein NiklasRosenstein committed Jun 3, 2012
Showing with 1 addition and 2 deletions.
  1. +0 −1 python/yaaal/libs/appfind/__init__.py
  2. +1 −1 python/yaaal/libs/yaaal/request_handler.py
View
1 python/yaaal/libs/appfind/__init__.py
@@ -324,7 +324,6 @@ def parse_desktop_file(filename, pixmaps, ):
else:
raise TypeError('file is not a valid *.desktop file. value for ' +
'NoDisplay is not true/false but %r.' % nodisplay)
-
icon = data.get('icon', '').decode(encoding) or None
if icon:
View
2 python/yaaal/libs/yaaal/request_handler.py
@@ -254,7 +254,7 @@ def _proc_result(self, result):
if hasattr(result, 'read'):
result = result.read()
- self.wfile.write(result)
+ self.wfile.write(result.decode('utf-8'))
def add_handler(self, regex, handler, flags=0):
""" *Public*. Associate a regular-expression passed via *regex* with a

0 comments on commit 3c8fa27

Please sign in to comment.