Ruby and Japanese

Discussion in 'Ruby' started by Maxim Ap, Apr 22, 2010.

  1. Maxim Ap

    Maxim Ap Guest

    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?
    --
    Posted via http://www.ruby-forum.com/.
     
    Maxim Ap, Apr 22, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Robert Oschler

    Dominant O/S for Japanese Ruby users?

    Robert Oschler, Jun 16, 2004, in forum: Ruby
    Replies:
    3
    Views:
    113
    Alexander Kellett
    Jun 17, 2004
  2. Mathieu Blondel
    Replies:
    0
    Views:
    107
    Mathieu Blondel
    Jun 20, 2005
  3. Replies:
    0
    Views:
    95
  4. Michael Sullivan
    Replies:
    14
    Views:
    262
    James Gray
    Jul 21, 2009
  5. zoat
    Replies:
    2
    Views:
    121
    Martin DeMello
    Sep 1, 2006
Loading...

Share This Page