2013-06-02, 19:02
I've try to get the xml data from movie site
but when the languages is not English XBMC can't display that for example.
example of xml data
pic 1 on my virtualenv these language is correct:
but pic 2 when it show on XBMC that isn't correct:
but XBMC can show this correct language on the settings.xml, But this is not setting it's data.
help me please!
edit:
this is my function to decode utf-8.
but when the languages is not English XBMC can't display that for example.
example of xml data
Code:
<PartNumber>จบ</PartNumber>
<LastUpdated>15/9/2555</LastUpdated>
<PartNumber>19</PartNumber>
<LastUpdated>15/9/2555</LastUpdated>
pic 1 on my virtualenv these language is correct:
but pic 2 when it show on XBMC that isn't correct:
but XBMC can show this correct language on the settings.xml, But this is not setting it's data.
help me please!
edit:
this is my function to decode utf-8.
Code:
def __decodefunction(text):
try:
text = unicode(text, 'utf-8')
except TypeError:
return text