Forum Discussion

dmitskevich's avatar
15 years ago

Russian (Cyrillic) letters

Dear Roku developers and community,

is it possible to display Cyrillic text somewhere in Roku components?

As far as I tested:

1) XML parser (roXMLElement) doesn't return unicode characters
2) Poster Screen (roPosterScreen) doesn't display unicode characters
3) Springboard Screen (roSpringboardScreen) doesn't display unicode characters

The code I used to verify e.g. Springboard Screen is:


Function Main()
port = CreateObject("roMessagePort")

springBoard = CreateObject("roSpringboardScreen")
springBoard.SetBreadcrumbText("[location 1]", "[location2]")
springBoard.SetMessagePort(port)

o = CreateObject("roAssociativeArray")
o.ContentType = "episode"
o.Title = "[Title]"+chr(1040)+"<"
o.ShortDescriptionLine1 = "[ShortDescriptionLine1]"+chr(1040)+"<"
o.ShortDescriptionLine2 = "[ShortDescriptionLine2]"+chr(1040)+"<"

o.Description = ""+chr(1040)+"<"
for i = 1 to 15
o.Description = o.Description + "[Description] "
end for

o.SDPosterUrl = ""
o.HDPosterUrl = ""
o.Rating = "NR"
o.StarRating = "75"
o.ReleaseDate = "[mm/dd/yyyy]"+chr(1040)+"<"
o.Length = 5400

o.Categories = CreateObject("roArray", 10, true)
o.Categories.Push("[Category1]"+chr(1040)+"<")
o.Categories.Push("[Category2]"+chr(1040)+"<")
o.Categories.Push("[Category3]"+chr(1040)+"<")

o.Actors = CreateObject("roArray", 10, true)
o.Actors.Push("[Actor1]"+chr(1040)+"<")
o.Actors.Push("[Actor2]"+chr(1040)+"<")
o.Actors.Push("[Actor3]"+chr(1040)+"<")

o.Director = "[Director]"+chr(1040)+"<"

springBoard.SetContent(o)
springBoard.Show()

while true
msg = wait(0, port)
if msg.isScreenClosed() then
return -1
elseif msg.isButtonPressed()
print "msg: "; msg.GetMessage(); "idx: "; msg.GetIndex()
endif
end while

End Function


where "+chr(1040)+" is letter "А" in Cyrillic alphabet: http://en.wikipedia.org/wiki/%D0%90

Is any chance/way to show Russian text in Roku?

Regards,
Dmitry

31 Replies