Kodi Community Forum

Full Version: UnicodeEncodeError in translation file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.