Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open files in utf-8 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

IndyHaine
Copy link

By not passing along an encoding-parameter to the open command, we rely on the default encoding being able to read the incoming files, which is not always the case for systems that have ASCII as their standard encoding. By specifying utf-8, we're on the safer side.
(Encoding problems occurred e.g. when starting docker containers made from debian images that tried to import the django-fontawesome-6 package, and the container couldn't start up in production-mode.)

If the locale system-default is ASCII, the docker-build process of any project containing django-fontawesome-6 will fail.
added encoding utf-8 when opening file (utils.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant