Ruby and Japanese

Hi All
Here is the problem that stops me:
I have UTF-8 ruby file with code:
$KCODE = “UTF-8”
p “日立ソフト”

If run command c:\test>ruby test.rb I get string that looks like:
“譌・遶九た繝輔ヨ”

And I don’t know how to get the same string in result.
Any suggestions?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs