Help preg_replace with Non-English character
| From: | Shelley | Date: | Thu, 22 May 2008 08:40:58 +0000 |
| Subject: | Help preg_replace with Non-English character | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-274623@lists.php.net to get a copy of this message | ||
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