I’m pretty new to Ruby and was wondering if it is possible to read lines
from a UTF-8 encoded file (some Japanese text in this case) and write
them to a text area in a TK gui. I was able to do this in Python with
unicode strings (e.g., u’\u-someCharCode’) but with my Ruby script the
text is garbled. I’ve seen references to UTF-8 in some Ruby
documentation, but I’m not sure how to proceed. It would be a start if
I could just get Japanese written to my console (I run the Japanese
WinXP so it shouldn’t be a problem).