Help preg_replace with Non-English character

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Just a question, I want to replace some Chinese characters with
preg_replace().

But it does not work.

The string is

$str = 'test<<你好>>http://www.phparch.cn/ 完成';

The ideal output is :
test<a href="http://www.phparch.cn";>你好</a> 完成

Any suggestion will be greatly appreciated.

-- 
Regards,
Shelley

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux