How to get unicode from python to $INFO label
#1
I have some code that uses this string:

Code:
u'Sigur R\xc3\xb3s'

(python repr())

...which would appear a to be a utf-8 encoded unicode string (Although I ma very weak in this area!)

and I am setting that to a window property via:

Code:
xbmcgui.Window(xbmcgui.getCurrentWindowId()).setProperty("CURRENTARTIST", artist)

(in a WindowXML)

I suspect I am going wrong somewhere basic but an arvo of researching various encoding things has got me no closer...

anyone have ideas??

...however, this results in gobbledygook on screen.
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a *full debug log*.
Reply


Messages In This Thread
How to get unicode from python to $INFO label - by bossanova808 - 2012-02-23, 07:17
[No subject] - by VictorV - 2012-02-23, 21:30
[No subject] - by bossanova808 - 2012-02-25, 02:19
[No subject] - by bossanova808 - 2012-02-25, 02:24
[No subject] - by bossanova808 - 2012-02-25, 02:36
[No subject] - by giftie - 2012-02-25, 04:48
[No subject] - by bossanova808 - 2012-02-25, 05:09
[No subject] - by giftie - 2012-02-25, 06:12
[No subject] - by bossanova808 - 2012-02-25, 06:18
[No subject] - by giftie - 2012-02-25, 07:33
[No subject] - by bossanova808 - 2012-02-25, 11:15
[No subject] - by giftie - 2012-02-25, 19:40
[No subject] - by bossanova808 - 2012-02-26, 07:59
[No subject] - by giftie - 2012-02-26, 19:59
[No subject] - by bossanova808 - 2012-02-27, 01:40
[No subject] - by giftie - 2012-02-27, 03:00
Logout Mark Read Team Forum Stats Members Help
How to get unicode from python to $INFO label0