If its ok in 4 services it should be ok to add in gui.py and have it on
all, if its not safe in gui.py I can't see how it's safe there...

Kind regards,
Željko Ametović

Sent from my iPhone

On 13.02.2013., at 18.36, jurrabi <notifications@github.com> wrote:

In script.xbmc.subtitles/resources/lib/services/LegendasZone/service.py:

> @@ -44,6 +49,8 @@
>  __addon__ = sys.modules[ "__main__" ].__addon__
>  __cwd__        = sys.modules[ "__main__" ].__cwd__
>  __language__   = __addon__.getLocalizedString
> +reload(sys)
> +sys.setdefaultencoding("utf-8")

Why are you using this?

Python's sys module has had a setdefaultencoding function since Python 2.0.
However,

This function is only intended to be used by the site module implementation
and, where needed, by sitecustomize. Once used by the site module, it is
removed from the sys module’s namespace.

I worry about posibble side effects of this...

—
Reply to this email directly or view it on
GitHub<https://github.com/amet/script.xbmc.subtitles/pull/159/files#r2996108>.