Your Digital Media Has Never Looked So Good

Topic Author
Posts: 106
Joined: Tue Mar 09, 2010 5:57 pm

charset bug

Mon Aug 16, 2010 10:06 am

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")

   originalText = "Exposé"
   history = [originalText]

   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"
         print "Yes bug"

   goto loop
End Sub

User avatar
Roku Engineering
Posts: 796
Joined: Tue Sep 22, 2009 2:29 pm

Re: charset bug

Mon Aug 16, 2010 10:12 am

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).

Posts: 71
Joined: Tue Feb 09, 2010 11:29 am
Location: San Diego, CA

Re: charset bug

Mon Aug 16, 2010 2:03 pm

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;

Who is online

Users browsing this forum: No registered users and 2 guests