awefawef...@prodigy.net
unread,Oct 7, 2021, 12:36:08 PM10/7/21You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello,
In ruby versions earlier than Ruby 3.0 / Ruby 3000, was there a standard
text encoding or was it per-platform? Here is an example from Windows
running Ruby 2.6.8 without the RUBYOPT=Eutf-8 option shows the following:
irb(main):001:0> 'hi'.encoding
=> #<Encoding:IBM437>
irb(main):002:0> RUBY_VERSION
=> "2.6.8"
Running the same commands in irb on Slackware Linux 14.2 without UTF-8
enabled gives the following result:
irb(main):001:0> 'hi'.encoding
=> #<Encoding:ISO-8859-1>
irb(main):002:0> RUBY_VERSION
=> "2.2.5"
Thanks.