Forum: Ruby on Rails String manipulation utf8

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
a.chars.upcase
=> "Rémi"
>>

any ideas?

Rémi
This topic is locked and can not be replied to.