Manual:$wgShellLocale

Details
Locale for, 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 here for a list of Locale IDs (LCID).