how to change default encoding?
#1
hi,
i'm using python scripts, but it seems there is a problem with character encoding. it seems that the default encoding is currently ascii. i would like to change default encoding to utf-8. how that should be done in xbmc python? is there some sort of locale support (environment variables) or sitecustomize.py or some other site initialization script?
Reply
#2
i think settingsmanager does this download at xbmcscripts.com xbmcscripts.com
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
according to my understanding this has to be done very early when python environment is initialized with this function:
sys.setdefaultencoding()

i suppose this article describes how this is supposed to be done in python:
http://mail.python.org/pipermail/i18n-si...00335.html

but this might not work in xbmc python?
Reply

Logout Mark Read Team Forum Stats Members Help
how to change default encoding?0