I have to convert case in Québec
to QUÉBEC
, but am unable to do so. Can someone please guide me? In my spec file, I included:
require 'unicode_utils/upcase'
and then I did:
p UnicodeUtils.upcase("Québec", :fr)
and got the following Argument error at run time:
wrong number of arguments (0 or 1+)
I even tried passing nil
as the second argument, but got the same error. What am I missing? I got some reference from this question.
$ gem install unicode_utils
$ irb
> require 'unicode_utils'
=> true
> UnicodeUtils.downcase("FEN BİLİMLERİ", :tr)
=> "fen bilimleri"