A
Andrew Barringer
This is probably something stupid simple I'm overlooking.. but.. here it
goes.
=20
I'm trying to set the default character encoding at the command line
like this:
=20
ruby19 -E ASCII-8BIT:ASCII-8BIT scratch.rb
=20
my scratch.rb file has the following line:
=20
p __ENCODING__
=20
The output is always this:
=20
#<Encoding:US-ASCII>
=20
I want it to be this:
=20
#<Encoding:US-ASCII-8BIT>
=20
What am I doing wrong?
=20
Thanks,
Andy
goes.
=20
I'm trying to set the default character encoding at the command line
like this:
=20
ruby19 -E ASCII-8BIT:ASCII-8BIT scratch.rb
=20
my scratch.rb file has the following line:
=20
p __ENCODING__
=20
The output is always this:
=20
#<Encoding:US-ASCII>
=20
I want it to be this:
=20
#<Encoding:US-ASCII-8BIT>
=20
What am I doing wrong?
=20
Thanks,
Andy