String#upcase and String#downcase don't work for accented characters
Many accented and other non-english characters fails to upcase/downcase properly.
Accented characters is the most common are the ones I keep stumbling upon,, but probably other germanic/nordic characters I'm not aware of have the same problems.
"Hola, ¿Cómo estás?".upcase # returns "HOLA, ¿CóMO ESTáS?" "CONFIANÇA".downcase # returns "confianÇa" "Un moment s'il vous plaît".upcase # returns "UN MOMENT S'IL VOUS PLAîT"
Updated by 0x0dea (D.E. Akers) almost 6 years ago
It would be unreasonable to add natural language processing to Ruby for the sake of a few methods, and it's easy to argue the case for not doing it at all over doing it incorrectly.