Closed cyrilchampier closed 5 years ago
hum set_encoding was introduced in ruby 1.9.1.
I the gem still support 1.8.6 and 1.8.7, should I fallback to .string.force_encoding
?
behaviour of set_encoding
was only correct on ruby > 2.3:
https://bugs.ruby-lang.org/issues/11827
Using: https://apidock.com/ruby/StringIO/set_encoding