Here’s an easy fix for when Docker and the sablon gem don’t want to cooperate: just update your locale.
A problem with the sablon gem occured when our team was developing an application locally in a Docker container. The Docker image based on `Debian Jessie` didn't have `locale` set which caused an encoding issue in `sablon`.
We updated our Dockerfile with the following lines to make sure `locale` is correctly set to `utf-8`:
In Ubuntu, there is the `update-locale` tool which lets you do it quickly: (`update-locale en_US.UTF-8`)
Today’s Developers’ Notes were delivered by Łukasz, our Web Application Development Team Leader. Watch out for more useful tips in the future!