From 27f488eb3ce3cf3ea9326fab20e4b406a5f04444 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Thu, 20 Feb 2014 12:29:34 +0100 Subject: make sure i3status_time encoding is UTF-8 wrt issue #24 --- py3status/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py3status/__init__.py') diff --git a/py3status/__init__.py b/py3status/__init__.py index fcd48ea..d1bc025 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -151,7 +151,7 @@ class I3status(Thread): time_format = self.config['time_format'] for item in json_list: if item['name'] in ['time', 'tztime']: - i3status_time = item['full_text'] + i3status_time = item['full_text'].encode('UTF-8', 'replace') # add mendatory items in i3status time format wrt issue #18 for fmt in ['%Y', '%m', '%d']: if not fmt in time_format: -- cgit v1.3