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