I
Iñaki Baz Castillo
Hi, I'm really annoyed, please try this:
Open a file (in a UTF-8 system as any modern Linux) and write:
script.rb
=2D-------------------
user =3D "I=C3=B1aki"
puts user
=2D-------------------
Now run:
~# ruby1.8 script.rb
=3D> "I=C3=B1aki"
~# ruby1.9 script.rb
=3D> invalid multibyte char (US-ASCII)
I'm using the last 1.9 version: ruby-1.9.1-p129
How can it be possible? Of course, the file "script.rb" is encoded in UTF-8=
,=20
sure.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
Open a file (in a UTF-8 system as any modern Linux) and write:
script.rb
=2D-------------------
user =3D "I=C3=B1aki"
puts user
=2D-------------------
Now run:
~# ruby1.8 script.rb
=3D> "I=C3=B1aki"
~# ruby1.9 script.rb
=3D> invalid multibyte char (US-ASCII)
I'm using the last 1.9 version: ruby-1.9.1-p129
How can it be possible? Of course, the file "script.rb" is encoded in UTF-8=
,=20
sure.
=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>