UnicodeEncodeError in translation file
#1
http://forum.xbmc.org/showthread.php?tid...pid1718543

The Portuguese translated strings.po is causing an error in my addon. Is this common? I would have thought the translation service would prevent this from happening?

What should I do? Just delete the offending string?
Reply
#2
Use something like this

PHP Code:
def localise(id):
    
string __addon__.getLocalizedString(id).encode'utf-8''ignore' )
    return 
string 
where you throw all localisations through


Not sure if it the .po should prevent this.
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
UnicodeEncodeError in translation file0