“ñáéÃóúà èìòù”.upcase
=> “ñáéÃóúà èìòù”
Shouldn’t String#upcase also upcase letters others than those from ‘a’
to
‘z’?:
“ñáéÃóúà èìòù”.upcase
=> “ÑÃÉÃÓÚÀÈÌÒÙ”
“ñáéÃóúà èìòù”.upcase
=> “ñáéÃóúà èìòù”
Shouldn’t String#upcase also upcase letters others than those from ‘a’
to
‘z’?:
“ñáéÃóúà èìòù”.upcase
=> “ÑÃÉÃÓÚÀÈÌÒÙ”
Hi,
On Apr 3, 2009, at 5:05 PM, Iñaki Baz C. wrote:
“ñáéíóúàèìòù”.upcase
=> “ñáéíóúàèìòù”Shouldn’t String#upcase also upcase letters others than those from
‘a’ to
‘z’?:
To upcase beyond ASCII, try the Unicode gem:
% gem install unicode
require “rubygems”
=> truerequire “unicode”
=> trueputs Unicode.upcase(“ñáéíóúàèìòù”)
ÑÁÉÍÓÚÀÈÌÒÙ
Stephen
El Sábado 04 Abril 2009, Stephen C.
escribió:> To upcase beyond ASCII, try the Unicode gem:
puts Unicode.upcase(“ñáéíóúàèìòù”)
ÑÁÉÍÓÚÀÈÌÒÙ
Great, thanks a lot.
On Sat, Apr 4, 2009 at 4:24 AM, Iñaki Baz C. [email protected] wrote:
El Sábado 04 Abril 2009, Stephen C. escribió:
On Apr 3, 2009, at 5:05 PM, Iñaki Baz C. wrote:
“ñáéíóúàèìòù”.upcase
=> “ñáéíóúàèìòù”To upcase beyond ASCII, try the Unicode gem:
% gem install unicodeUnfortunatelly this gem doesn’t install on Ruby 1.9.
solidarity,
lasitha
El Sábado 04 Abril 2009, Stephen C.
escribió:> To upcase beyond ASCII, try the Unicode gem:
% gem install unicode
Unfortunatelly this gem doesn’t install on Ruby 1.9.
It uses:
struct RString->ptr
which is not valid in Ruby1.9.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs