python-discord / infra

Infrastructure for Python Discord
https://docs.pydis.wtf
MIT License
14 stars 4 forks source link

Treat NGINX responses as UTF-8 #530

Closed jb3 closed 2 months ago

jb3 commented 2 months ago

Some sites that had non-ASCII characters rendered weirdly because our NGINX configuration was not returning a default charset and so rendering was being left up to browser/standards defaults.

This change adds a new config file to /etc/nginx/conf.d/ which forces responses to be interpreted as/transformed to UTF-8.

jchristgit commented 2 months ago

Ap pliied in main. Thanks!