I already tried with the specified /u option. On Windows (PHP 5.2.16), adding the /u option worked fine for writing a line containing Unicode characters, however on CentOS 5 and PHP 5.2.16 I still couldn’t write a line containing Unicode characters using .* (Preg_match basically failed to capture).
After a long time, I’m not going anywhere, messing around with the "LOCALE" settings, which did not change anything, I finally found this site .
I made rpm -Uvh appropriate version of rpm, restarted apache, and all of a sudden my regular expressions worked fine!
Although I had UTF-8 support initially, my regular expressions did not commit unicode strings until I installed the updated rpm, which also adds “Unicode Property Support”. I thought UTF-8 support would be enough, but apparently not.
sykkes
source share