Posts: 395
Joined: Dec 2006
Reputation:
0
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.
Posts: 1,034
Joined: Sep 2004
Reputation:
146
Dan Dare
http://www.xbmc4xbox.org
Posts: 1,034
Some sample code maybe? OS, XBMC version, skin?
Posts: 395
Joined: Dec 2006
Reputation:
0
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
Posts: 1,034
Joined: Sep 2004
Reputation:
146
Dan Dare
http://www.xbmc4xbox.org
Posts: 1,034
Sorry man, can't help, there's little information to work with...