From 3ea658c898c986035685c6f81cf956808f5bfac2 Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Thu, 26 Apr 2018 00:51:57 +0430 Subject: [PATCH] 1. fixed UnicodeDecodeError for unicode routes 2. bumped version to 0.5.6 --- grest/__init__.py | 2 +- grest/grest.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/grest/__init__.py b/grest/__init__.py index ed8dc2a..cbc8948 100644 --- a/grest/__init__.py +++ b/grest/__init__.py @@ -20,4 +20,4 @@ from .grest import GRest -__version__ = '0.5.5' +__version__ = '0.5.6' diff --git a/grest/grest.py b/grest/grest.py index e39246a..99a7ade 100644 --- a/grest/grest.py +++ b/grest/grest.py @@ -19,6 +19,11 @@ # from __future__ import unicode_literals +import sys +import imp + +imp.reload(sys) +sys.setdefaultencoding("utf-8") try: # For Python 3.0 and later