From 53b3161283720248127936410a3d8eb5cacafa84 Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Sat, 16 May 2020 16:48:41 +0200 Subject: [PATCH] Fixes #10599 / add note to escapeshellarg() removes non ascii chars --- Documentation/Manual.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/Manual.rst b/Documentation/Manual.rst index a95ee28ad..c4f9e39eb 100644 --- a/Documentation/Manual.rst +++ b/Documentation/Manual.rst @@ -127,6 +127,14 @@ If there are problems with converting/downloading FE_GROUP protected pages, chec and so on! Typically some of them fails to load and wkhtml stops running! Verify the correct loading of all elements by calling the site via a regular browser and bypassing any browser cache (Ctrl F5). +.. note:: + + On Ubuntu, Apache is started by default with `LANG=C`. This is true even when the OS default locale is set to `en_US.UTF-8`. + Furthermore, all child processes of Apache will inherit `LANG=C`. Some PHP functions (like 'escapeshellarg()') + or `wkhtml` will strip all non-ASCII characters (e.g. commandline arguments). + + Let Apache run with the system locale: `/etc/apache/envvars`, activate the line `. /etc/default/locale` and restart Apache. + Checklist wkhtml problems """"""""""""""""""""""""" -- GitLab