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


#1

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

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

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


#2

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


#3

El Sábado 04 Abril 2009, Stephen C.
escribió:> To upcase beyond ASCII, try the Unicode gem:

puts Unicode.upcase(“ñáéíóúàèìòù”)

ÑÁÉÍÓÚÀÈÌÒÙ

Great, thanks a lot.


#4

On Sat, Apr 4, 2009 at 4:24 AM, Iñaki Baz C. removed_email_address@domain.invalid 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.

http://github.com/lang/unicode_utils

solidarity,
lasitha


#5

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.