diff options
| author | coqbot-app[bot] | 2020-12-28 16:47:16 +0000 |
|---|---|---|
| committer | GitHub | 2020-12-28 16:47:16 +0000 |
| commit | 942fb01934b02181fd3a88d80fc870f8d4900d2c (patch) | |
| tree | 249a05c091ff076492e63739bc05038efe244b9a /doc/README.md | |
| parent | ba0a277568182c205ad411986598632bb341f2d9 (diff) | |
| parent | 6e2b31ab0ec22c04f8987b4eb54d6ba7bbdee4c4 (diff) | |
Merge PR #13665: Set Python's default output encoding to utf-8
Reviewed-by: Zimmi48
Ack-by: palmskog
Diffstat (limited to 'doc/README.md')
| -rw-r--r-- | doc/README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/README.md b/doc/README.md index 79d1e1b756..440b104c16 100644 --- a/doc/README.md +++ b/doc/README.md @@ -69,6 +69,16 @@ Or if you want to use less disk space: apt install texlive-latex-extra texlive-fonts-recommended texlive-xetex \ latexmk fonts-freefont-otf +### Setting the locale for Python + +Make sure that the locale is configured on your platform so that Python encodes +printed messages with utf-8 rather than generating runtime exceptions +for non-ascii characters. The `.UTF-8` in `export LANG=C.UTF-8` sets UTF-8 encoding. +The `C` can be replaced with any supported language code. You can set the default +for a Docker build with `ENV LANG C.UTF-8`. (Python may look at other +environment variables to determine the locale; see the +[Python documentation](https://docs.python.org/3/library/locale.html#locale.getdefaultlocale)). + Compilation ----------- |
