0 replies on 1 page.
Cool, good news, the Fingertips’ ActiveSupport::Multibyte is checked into Rails. This equips every string with a chars method which offers a host of friendly Unicode-aware methods for the string. You know: reverse, length, slice and the like.
chars
reverse
length
slice
name = 'Claus M��ller' name.reverse #=> "rell??M sualC" name.length #=> 13 name.chars.reverse.to_s #=> "rell��M sualC" name.chars.length #=> 12
This is valuable, essential work. Thanks to Thijs, Manfred, Julik and related contributors. Along with Nikolai’s work, we’re on our way.
Read: String#chars Blessed by Rails Papacy as Fingertips Work to Dip Ruby's Toes in the UTF-8 Waters