Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lucasgonze
Visitor

charset bug

Create an roSearchScreen
Put a string into the search terms list with a character from outside the US-ASCII set.
Run the code.
Select the item in the list.
msg.GetMessage() will not be the same as the item you inserted into the list.



sub main()

port = CreateObject("roMessagePort")
screen = CreateObject("roSearchScreen")
screen.SetMessagePort(port)

originalText = "Exposé"
history = [originalText]
screen.SetSearchTerms(history)
screen.Show()

loop:
msg = wait(0,screen.GetMessagePort())
if type(msg) = "Invalid" goto loop

' test whether the string in the search result is
if( msg.isFullResult() ) then
incoming = msg.GetMessage()
print "incoming: "+incoming
print len(incoming)
print "originalText: "+originalText
print len(originalText)
if( incoming = originalText ) then
print "No bug"
else
print "Yes bug"
endif
endif

goto loop

End Sub

0 Kudos
2 REPLIES 2
RokuKevin
Visitor

Re: charset bug

We do not support non ascii character sets at this time. The manifest file is one of the few exceptions (so you can put copyright and TM symbols in your channel title).

--Kevin
0 Kudos
EngoTom
Visitor

Re: charset bug

We have a private channel with UTF-8 chars in the title and description that show properly.


The XML returned to the client is prefixed with

XmlWriterSettings settings = new XmlWriterSettings();
settings.Encoding = Encoding.UTF8;
settings.Indent = true;
0 Kudos