Posted by robert.szczepanski on 07/07/07 14:48
Hi Everybody
Why the following script return NULL?
this is the following:
<?php
var_dump ( setlocale(LC_ALL, "pl") );
?>
this is the return:
bool(false)
I use:
1. apache2
2. Ubuntu 6.06 LTS - Dapper Drake
When I execute 'locale' in my terminal I return the following
messages:
rob$ locale
LANG=pl_PL.UTF-8
LANGUAGE=pl_PL:pl:en_GB:en
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES="pl_PL.UTF-8"
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=
rob$locale -a | grep PL
pl_PL.utf8
Any suggestion or comments is greatly appreciated.
Robert.
[Back to original message]
|