From: 0x0dea+redmine@... Date: 2015-06-18T22:26:46+00:00 Subject: [ruby-core:69668] [Ruby trunk - Bug #11284] String#upcase and String#downcase don't work for accented characters Issue #11284 has been updated by D.E. Akers. http://stackoverflow.com/a/4418681 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. ---------------------------------------- Bug #11284: String#upcase and String#downcase don't work for accented characters https://bugs.ruby-lang.org/issues/11284#change-53028 * Author: Pablo Herrero * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- 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. For example: "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" -- https://bugs.ruby-lang.org/