hybridgroup/kidsruby — pull request #73 by silkycove (2012-06-06 02:37:08+00:00)
Title: support UTF-8 output for multiple languages

Hi,
I tried to puts a Japanese string (UTF-8) and it was not displayed on Output tab.
I made some changes so that UTF-8 characters are correctly displayed on Output tab. Please review the changes and merge if possible.
Changes:
1) Add a UTF-8 magic comment to kidcode.rb. Without the magic comment, kidcode.rb is terminated with an error such “unexpected '”.
2) Change unescape() to decodeURI() in updateStdOut(). unescape() seems not able to handle UTF-8 characters correctly. Characters are garbled on Output tab.