Arabic text in plugin
#1
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)
Reply
#2
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.
Reply
#3
thank you very much
problem solved
Reply

Logout Mark Read Team Forum Stats Members Help
Arabic text in plugin0