From: Harry Date: 2007-02-11T07:20:14+09:00 Subject: Re: tr does not work with non-english chars > > puts "us���".sub('���','a')>> cool but what I want is>> puts "us��".sub('��','a') not puts "us���".sub('���','a')>> the users are using the char ��>>Well, tell them to stop it. :) Seriously, I only work with English and Japanese characters so if thatdidn't fix your problem then the only thing I know to try is $KCODE ='u'.If that doesn't help, maybe someone else can help. Harry -- http://www.kakueki.com/ruby/list.html