I just experienced a weird problem today:
On my windows machine, ctype_print(“äöütest”) returned true.
But when I was on my linux machine (debian), it returned false.
In the php.net documentation I read that the locale set might be affecting this.
How can I change that?
Edit: Indeed – when I run
setlocale(LC_ALL, null)
on my local machine I get
German_Germany.1252
On the server I get
C
What would be a sensible default value?
something like this i guess
for setting to utf-8
where directory structure of locale is (for example) :
locale/fr_FR/LC_MESSAGES/mydomain.mo
locale/en_US/LC_MESSAGES/mydomain.mo
and ABSPATH is the absolute path to the locale dir
further note, under linux systems, it seems to be necessary to create the locale at os level using ‘locale-gen’.