in reply to Re: Honest question about Perl, Python and Ruby
in thread Honest question about Perl, Python and Ruby

If you happen to deal a lot with Unicode (non-ASCII) text, you'll like Ruby v2
Is that so? The last time I looked at Ruby, even the simplest things (like "Я".downcase()) didn't work. Not to mention full casefolding, properties, normalization, collation... there were some slow, 'pure Ruby' libraries... it was pretty bad. Is it improved now? I kind of got an impression that Japanese dislike Unicode because it makes their alphabet look like Chinese or something (but maybe it's a false impression that says more about me then about the Japanese).
  • Comment on Re^2: Honest question about Perl, Python and Ruby

Replies are listed 'Best First'.
Re^3: Honest question about Perl, Python and Ruby
by graff (Chancellor) on Feb 07, 2015 at 16:23 UTC
    Thanks for pointing that out. I stand corrected. (To their credit, this is one case where the ruby docs are clear: "... Note: case replacement is effective only in ASCII region.") Oh well, room for improvement there.

    Update: FWIW, a ruby user can do "gem install unicode_utils", and then do things like:

    #!/usr/bin/env ruby require 'unicode_utils' puts UnicodeUtils.downcase("Я") # aka "\u042F", "CYRILLIC CAPIT +AL LETTER YA"
    It's clunky, but it works. (I wish the "code" tags here would allow a letter like "Я" to appear as such.)