String manipulation utf8

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs