From 051fa9db8fd4a3fbb213f0b60c8c39dff946f3ad Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Sun, 20 Oct 2013 21:34:46 +0100 Subject: [PATCH] Changed logging to UTF-8 --- openlp/core/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/__init__.py b/openlp/core/__init__.py index f86f9036f..f3edf476e 100644 --- a/openlp/core/__init__.py +++ b/openlp/core/__init__.py @@ -230,7 +230,7 @@ def set_up_logging(log_path): """ check_directory_exists(log_path, True) filename = os.path.join(log_path, 'openlp.log') - logfile = logging.FileHandler(filename, 'w') + logfile = logging.FileHandler(filename, 'w', encoding="UTF-8") logfile.setFormatter(logging.Formatter('%(asctime)s %(name)-55s %(levelname)-8s %(message)s')) log.addHandler(logfile) if log.isEnabledFor(logging.DEBUG):