From: KIMURA Koichi Date: 2000-11-07T17:53:42+09:00 Subject: [ruby-list:25838] Re: 半角カナ変換 木村です。 In article [ruby-list:25835] 半角カナ変換 (<20001107170736Y.tanaka@esd.spr.epson.co.jp>), Katsuya Tanaka writes: >/usr/local/lib/ruby/1.6/jcode.rb:128:in `tr!': invalid regular expression: /[\\\216\\\261-\\\216\\\335]/ (RegexpError) > from /usr/local/lib/ruby/1.6/jcode.rb:139:in `tr' > from ./test1.rb:6 > >というエラーがでます。 > >これはなにが悪いのでしょう? or 他に良い方法があるのでしょうか? 漢字コードの指定をしていないからではないでしょうか? #!行に-Keを つけてみては。 -- 木村浩一 May the source be with you. e-mail kbk@kt.rim.or.jp