Yes, that works... but I cannot figure why is this required. I use a system
in UTF-8 so the file is encoded in UTF-8. Also Ruby1.9 seems to work in UTF-8
by default:
"abc".encoding
=> #<Encoding:UTF-8>
so...?
Thanks for your reply.
···
El Miércoles, 2 de Septiembre de 2009, brabuhr@gmail.com escribió:
On Tue, Sep 1, 2009 at 7:13 PM, Iñaki Baz Castillo<ibc@aliax.net> wrote:
> Hi, I'm really annoyed, please try this:
>
> Open a file (in a UTF-8 system as any modern Linux) and write:
>
> script.rb
> --------------------
> user = "Iñaki"
> puts user
> --------------------
>
> ~# ruby1.9 script.rb
> => invalid multibyte char (US-ASCII)
>
> How can it be possible? The file "script.rb" is encoded in UTF-8
Yes, that works... but I cannot figure why is this required. I use a
system
in UTF-8 so the file is encoded in UTF-8. Also Ruby1.9 seems to work in
UTF-8
by default:
"The first is the main rule of source Encodings: source files receive
a US-ASCII Encoding, unless you say otherwise"
···
2009/9/2 John W Higgins <wishdev@gmail.com>:
Yes, that works... but I cannot figure why is this required. I use a
system
in UTF-8 so the file is encoded in UTF-8. Also Ruby1.9 seems to work in
UTF-8
by default: