"ñáéíóúàèìòù".upcase => " ñáéíóúàèìòù" ¿?

"ñáéíóúàèìòù".upcase
=> "ñáéíóúàèìòù"

Shouldn't String#upcase also upcase letters others than those from 'a' to
'z'?:

"ñáéíóúàèìòù".upcase
=> "ÑÁÉÍÓÚÀÈÌÒÙ"

···

--
Iñaki Baz Castillo <ibc@aliax.net>

Hi,

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

···

On Apr 3, 2009, at 5:05 PM, Iñaki Baz Castillo wrote:

Great, thanks a lot.

···

El Sábado 04 Abril 2009, Stephen Celis escribió:

Hi,

On Apr 3, 2009, at 5:05 PM, Iñaki Baz Castillo 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("ñáéíóúàèìòù")

ÑÁÉÍÓÚÀÈÌÒÙ

--
Iñaki Baz Castillo <ibc@aliax.net>

Unfortunatelly this gem doesn't install on Ruby 1.9.
It uses:
  struct RString->ptr
which is not valid in Ruby1.9.

···

El Sábado 04 Abril 2009, Stephen Celis escribió:

Hi,

On Apr 3, 2009, at 5:05 PM, Iñaki Baz Castillo 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

--
Iñaki Baz Castillo <ibc@aliax.net>

solidarity,
lasitha

···

On Sat, Apr 4, 2009 at 4:24 AM, Iñaki Baz Castillo <ibc@aliax.net> wrote:

El Sábado 04 Abril 2009, Stephen Celis escribió:

On Apr 3, 2009, at 5:05 PM, Iñaki Baz Castillo wrote:
> "ñáéíóúàèìòù".upcase
> => "ñáéíóúàèìòù"
>

To upcase beyond ASCII, try the Unicode gem:
% gem install unicode

Unfortunatelly this gem doesn't install on Ruby 1.9.