Why does setlocale(LC_ALL, 'en_GB.UTF8'); return false on Windows Server 2003 R2 – Zend CE PHP 5.3.5 ?
Function in question: setlocale.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the PHP Manual:
So in your case it returns false because the system returns false. It is likely that the locale you’re using is not available on your system.
A list of
setlocalestrings supported by Windows is available here. For British English you wanteng,english-uk, oruk. Windows doesn’t support multi-byte character sets like UTF-8 though; you will probably end up with Windows-1252.