ENV[“VARIABLE”].encoding return #<Encoding:ASCII-8BIT> on production when being assigned a unicode string
I’m using ENV[“VARIABLE”] inside my Rails app which being set to a unicode string.
On production (which is a docker container), this ENV[“VARIABLE”] is somehow encoded with
Encoding:ASCII-8BIT (though ENV[“PWD”], for instance, is encoded with
development, every variable is encoded with
Encoding:UTF-8. The encoding of ASCII-8BIT prevent me to render the variable in a view. What is the cause? How could I fix?