From d3dc9107846a102e0850bf3475fba67e796196af Mon Sep 17 00:00:00 2001 From: Alex Hall Date: Fri, 11 Jun 2021 14:05:52 +0200 Subject: [PATCH] (core) sys.setdefaultencoding('utf8') Summary: sys.setdefaultencoding('utf8') Test Plan: Will test against user documents to check for changes Reviewers: dsagal, paulfitz Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2858 --- sandbox/grist/engine.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sandbox/grist/engine.py b/sandbox/grist/engine.py index 1cac5704..3dd4c70e 100644 --- a/sandbox/grist/engine.py +++ b/sandbox/grist/engine.py @@ -34,6 +34,10 @@ import repl log = logger.Logger(__name__, logger.INFO) +reload(sys) +sys.setdefaultencoding('utf8') + + class OrderError(Exception): """ An exception thrown and handled internally, representing when