Forum: Ruby on Rails String manipulation utf8

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rémi G. (Guest)
on 2009-03-19 16:03
I'm trying to upcase a string that contains utf8 chars. But I have some
weird behavior.

Here is

>> a = "rémi"
a = "rémi"
=> "rémi"

>> a.chars.upcase
=> "Rémi"

any ideas?

This topic is locked and can not be replied to.