From: Ad Ad Date: 2009-06-26T23:38:18+09:00 Subject: Re: utf8 encoding problem James Rubingh wrote: > Although I haven't tried it myself, I did a search for > 全角半角変換 and > found this page. > It appears people use jcode and tr to solve this problem. > > http://www.eml.ele.cst.nihon-u.ac.jp/~momma/wiki/wiki.cgi/Ruby/%E5%85%A8%E8%A7%92%E5%8D%8A%E8%A7%92%E5%A4%89%E6%8F%9B.html > http://blog.grayproductions.net/articles/the_kcode_variable_and_jcode_library > > > 2009/6/25 Eric Hodel : brilliant! str.tr!('���-������-���','a-zA-z') worked like a charm. :) -- Posted via http://www.ruby-forum.com/.