What I need is to replace some stuff in an international-character string, specifically a greek word.
While I can get everything to work fine on my PC, this is not the case with my host's server. Here's a small example:
echo mb_detect_encoding($word)." 1- ".$word."<br/>"; $word = preg_replace("/\W/", "", $word); echo mb_detect_encoding($word)." 2- ".$word."<br/>";
On my machine, this would print (as expected):
UTF-8 1- ααα. UTF-8 2- αααwhere ααα is some greek-charactere word.
On my host's server, the same code prints:
UTF-8 1- ααα. ASCII 2-
which of course is not what I need.
Moreover, I think ereg* functions work on my host too, but they' re not as handy, hence I need to use preg* functions.
Can please, PLEASE! someone help me here. I've been pulling my hair for days!
Thanks for even reading