Kodi Community Forum
Need consalt with font trouble... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Need consalt with font trouble... (/showthread.php?tid=53019)



Need consalt with font trouble... - BAG_Ass - 2009-06-17

Hi!
I try to write script with UTF-8 cyrillic support and have littlt problem
Word of Upper-case letters shows good, but lower-case write ordinary ANCI like "Р°Р+Р_"
PLS give me advice.
Thanks.


- Dan Dare - 2009-06-18

Some sample code maybe? OS, XBMC version, skin?


- BAG_Ass - 2009-06-18

1. sample code (bold variable):
def search_storedepg(chid, channel_epg, rawtime):
try:
on_now = 'No EPG Found'
for x in channel_epg[:]:
if x[:][0] == chid:
duration = int(x[:][2]) / 60
already_gone = (int(rawtime) - int(x[:][1])) / 60
start_time = int(x[:][1])
end_time = int(x[:][1]) + int(x[:][2])
on_now = str(x[:][4])+ ' - ' + str(already_gone) + '/' + str(duration) + ' Mins'

return str(on_now)
except:
return 'error'

2. XBOX
3. 8.10
4. PMIII


- Dan Dare - 2009-06-18

@BAG_Ass
I was expecting a working sample with some Cyrillic characters so we can see run it and see. Any plans to move to / try on XBMC 9.04?


- BAG_Ass - 2009-06-19

Dan Dare
i think there is no changes in this area in 9.04 too Sad
in xbmc.log - error decoding utf-8 message


- Dan Dare - 2009-06-19

Sorry man, can't help, there's little information to work with...


- BAG_Ass - 2009-06-19

Dan Dare
You know what i can`t understand - why Upper-case shown adequate but lower - not Sad


- Dan Dare - 2009-06-19

@BAG_Ass
Sorry man, I don't know what you are talking about... no working example, can't help...