I've got a strange issue where a preg_replace has different results on different servers. When the following code is executed on my local wampserver:
echo preg_replace('/[\W]+/u', '-', "blāh bl*h");
The following is output:
"blāh-bl-h"
When executed on my remote server, the following is output:
"bl-h-bl-h"
The "ā" is also replaced.
The php installation on the local wampserver is 5.3.13, on the server it is 5.3.3-7+squeeze15. Is this a PHP version thing?