Kodi Community Forum

Full Version: Arabic text in plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Im currently writing an addon for arabic music, im facing a problem with listing song names in arabic.
I changed the system's font to ariel based but my test plugin keeps crashing
my code is very simple:

str1 = u"هاني متواسي"
li = xbmcgui.ListItem(str1.encode("utf-8"), iconImage=img)
Do you have an encoding comment at the top of the python script? (e.g. # encoding: UTF-8)

You should not encode the string to utf-8, just keep it as unicode.
thank you very much
problem solved