• Ruby 2.7 and earlier (Pre-Ruby 3000/Ruby 3.0) Text Encoding / Charsets

    From awefawefawefawef@prodigy.net@21:1/5 to All on Thu Oct 7 09:36:01 2021
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)