A
A
antivir2011-09-01 11:23:02
ruby
antivir, 2011-09-01 11:23:02

Ruby: upcase for Cyrillic

In Ruby 1.9.2, the upcase and downcase methods have no effect on the Cyrillic alphabet.
Are there any solutions to the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
d4rkr00t, 2011-09-01
@d4rkr00t

We put the unicode gem github.com/blackwinter/unicode
and connect it to our project require "unicode";
and use its Unicode::downcase and Unicode::upcase methods
. I just extended the standard String class: pastebin.com/8ntg0sjK
I have written more on my blog and described how to use it with Ruby on Rails.
Link to the blog in the profile or write in a personal. I'm afraid of the habraeffect :)

A
antivir, 2011-09-01
@antivir

Working option, thanks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question