Manual:$wgShellLocale

Details
$wgShellLocale affects LC_ALL and is applied for all requests. In MediaWiki 1.29 and older it only affected LC_CTYPE. It has originally been added to work around http://bugs.php.net/bug.php?id=45132.

For Unix-like operating systems, set this to a locale that has a UTF-8 character set. Only the character set is relevant.

See [http://msdn.microsoft.com/en-us/library/0h88fahh%28VS.85%29.aspx here] for a list of Locale IDs (LCID).