diff --git a/q_routine.py b/q_routine.py index 678f308..163b55c 100644 --- a/q_routine.py +++ b/q_routine.py @@ -12,7 +12,11 @@ #fix unicode encoding issue when rendering template with non-ascii string #see https://stackoverflow.com/questions/9942594/unicodeencodeerror-ascii-codec-cant-encode-character-u-xa0-in-position-20 -import os; import locale; os.environ["PYTHONIOENCODING"] = "utf-8"; myLocale=locale.setlocale(category=locale.LC_ALL, locale="en_GB.UTF-8"); +import os; +import locale; + +os.environ["PYTHONIOENCODING"] = "utf-8"; +myLocale=locale.setlocale(category=locale.LC_ALL, locale=""); #copy code from https://github.com/nickjj/sublime-text-3-packages/blob/master/Packages/Gutter%20Color/gutter_color.py def clear_and_reload_cache(force = False):