From f94ed68211826aa449c46c9b6f925c801c6c818c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Aug 2013 16:58:27 +0530 Subject: [PATCH] Fix #621 --- powerline/lib/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/powerline/lib/config.py b/powerline/lib/config.py index 8fec4d95..9cf6ee4a 100644 --- a/powerline/lib/config.py +++ b/powerline/lib/config.py @@ -8,10 +8,11 @@ from threading import Event, Lock from collections import defaultdict import json +import codecs def open_file(path): - return open(path, 'r') + return codecs.open(path, encoding='utf-8') def load_json_config(config_file_path, load=json.load, open_file=open_file):