Rails: How to downcase non-English string?
Why not to use gem unicode_utils
. This gem will not force downcase
to work, however you can use:
UnicodeUtils.downcase('Привет') #=> 'привет'
str = "Привет"
str.mb_chars.downcase.to_s
#=> "привет"