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 Encoding:UTF-8). On 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?

  • How To Run Docker Commands Asynchronously?
  • Docker difference in start and stop times
  • Use Docker Compose offline by using local images and not pulling images
  • How to build an image with Dockerfile in Kitematic?
  • Docker, communicating between hosts on different bridges
  • cannot ping www.google in a docker container when connected to one wifi
  • Short lived kubernetes container (/sidekick) in a pod (in a Replication Controller)
  • Docker Server for Multiple Users
  • Bidirectional UDP Port for docker container
  • Separate Dev and Production instances and database
  • Docker container IP address
  • Updating Task Definitions in ECS
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.