Project

General

Profile

Actions

Bug #11284

closed

String#upcase and String#downcase don't work for accented characters

Added by pabloh (Pablo Herrero) over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
[ruby-core:69666]

Description

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"

Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #10085: Add non-ASCII case conversion to String#upcase/downcase/swapcase/capitalizeClosedduerst (Martin Dürst)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0