From 4f35282511b958cbda6a5a0a2dd33ef7d743f588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Espen=20K=C3=A5sa=20Notodden?= Date: Thu, 26 Jun 2014 20:46:29 +0200 Subject: [PATCH] encode all strings as utf-8 --- onionshare/onionshare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare/onionshare.py b/onionshare/onionshare.py index e8f374d6..616fc92b 100644 --- a/onionshare/onionshare.py +++ b/onionshare/onionshare.py @@ -168,7 +168,7 @@ def load_strings(default="en"): # if a string doesn't exist, fallback to English for key in translated[default]: if key in translated[lang]: - strings[key] = translated[lang][key] + strings[key] = translated[lang][key].encode("utf-8") return strings def file_crunching(filename):