"ñáéíóúà èìòù".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”
=> true

require “unicode”
=> true

puts 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 unicode

Unfortunatelly 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.