Trying to use .titleize on a non UTF-8 string and getting an unexpected value. Example: 2.0.0 (main):0 > “VOCÊ”.titleize
=> “VocÊ”
The result should be “Você”
I think this is an unexpected behave from Ruby
2.1.5 :001 > “VOCÊ”.downcase
=> “vocÊ” Maybe .**titleize **can use mb_chars as the default way to titleize a string to “fix” this.
2.0.0 (main):0 > “VOCÊ”.mb_chars.titleize.to_s
=> “Você”
What u guys think about it?