summaryrefslogtreecommitdiff
path: root/docs/howto/deployment/wsgi/uwsgi.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/howto/deployment/wsgi/uwsgi.txt')
-rw-r--r--docs/howto/deployment/wsgi/uwsgi.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/howto/deployment/wsgi/uwsgi.txt b/docs/howto/deployment/wsgi/uwsgi.txt
index 89eb9b5698..932d16817b 100644
--- a/docs/howto/deployment/wsgi/uwsgi.txt
+++ b/docs/howto/deployment/wsgi/uwsgi.txt
@@ -108,6 +108,17 @@ Example ini configuration file usage::
uwsgi --ini uwsgi.ini
+.. admonition:: Fixing ``UnicodeEncodeError`` for file uploads
+
+ If you get a ``UnicodeEncodeError`` when uploading files with file names
+ that contain non-ASCII characters, make sure uWSGI is configured to accept
+ non-ASCII file names by adding this to your ``uwsgi.ini``::
+
+ env = LANG='en_US.UTF-8'
+
+ See the :ref:`unicode-files` section of the Unicode reference guide for
+ details.
+
See the uWSGI docs on `managing the uWSGI process`_ for information on
starting, stopping and reloading the uWSGI workers.