Actions
Bug #11284
closedString#upcase and String#downcase don't work for accented characters
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
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"
Updated by 0x0dea (D.E. Akers) over 9 years ago
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.
Updated by duerst (Martin Dürst) over 9 years ago
- Is duplicate of Feature #10085: Add non-ASCII case conversion to String#upcase/downcase/swapcase/capitalize added
Updated by duerst (Martin Dürst) over 9 years ago
- Status changed from Open to Closed
Closing because this is being worked on (slowly) as #10085, which is already accepted.
Updated by usa (Usaku NAKAMURA) over 9 years ago
- Status changed from Closed to Rejected
This status "rejected" does not mean this report is rejected.
This change is only to unify the tickets.
Actions
Like0
Like0Like0Like0Like0