I am trying to get local language of the current machine for that i use the following code
$currentLocal = setlocale(LC_CTYPE, null);
echo $currentLocal;
it returns the value correctly in localhost/windows, but in linux server it was not working on live it returns only C any suggestions?
The C
, otherwise known as the POSIX
, locale, supports only 7-bit ASCII characters. Read more here: POSIX Locale. And here: What does “LC_ALL=C” do?