From: Nuralanur@... Date: 2006-03-09T04:24:29+09:00 Subject: Re: unicode in ruby -------------------------------1141845848 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Dear Michal, hmm. I have written the most complex Czech text file I could think of containing the words Cesky and cesky - with hooks, that is, and saved it in UTF8 encoding as file utf8.txt. Now, having installed Library No. 8 from _http://www.yoshidam.net/Ruby.html_ (http://www.yoshidam.net/Ruby.html) , the following script ------------------------------------------------------------------- #!/c/axelhome/ruby -Ku -rjcode require "unicode" text=IO.readlines("/c/axelhome/ruby/utf8.txt") p 'mytext' p text c=text.to_s.split p c d=Unicode::downcase(c[0]) e=Unicode::downcase(c[1]) puts "are the first letters equal ? #{d==e}" ------------------------------------------------------------------ returns true. Hope that helps, Axel -------------------------------1141845848--