Open albertnetymk opened 8 years ago
ruby -e ' require "systemu"; p Encoding.default_internal = Encoding.default_external; status, stdout, stderr = systemu "echo 3"; p [status, stdout.encoding, stderr]'
The result I got using ruby 2.3.1 and systemu 2.6.5 is:
#<Encoding:UTF-8> [#<Process::Status: pid 8346 exit 0>, #<Encoding:ASCII-8BIT>, ""]
I was expecting that changing default_internal would affect the encoding used by systemu. How can I tell systemu to use utf8 by default?
default_internal
systemu
The result I got using ruby 2.3.1 and systemu 2.6.5 is:
I was expecting that changing
default_internal
would affect the encoding used bysystemu
. How can I tellsystemu
to use utf8 by default?