special character problem
| From: | saeed ahmed | Date: | Tue, 27 Apr 2010 10:41:26 +0000 |
| Subject: | special character problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-304643@lists.php.net to get a copy of this message | ||
hello friends,
I have used
preg_replace('/[^0-9a-zа\~\!\@\$\%\^\*\(\)\;\,\.\'\/\_]/i', ' ',$match);
for remove the special characters. its work fine. but the problem I want to
remove special characters from this kind of sentence
///
#: "'''''Amor''' é fogo que arde sem se
ver,''
#: ''é ferida que dói, e não se sente,''
#: ''é um contentamento descontente,''
#: ''é dor que desatina sem doer.''"
#:: ''- Camões''
///
its remove all special character including é, ã, õ, which I do not want to.
I want to remove special character except these three. please suggest me...
-----
Regards
Saeed Ahmed
http://saeed05.wordpress.com
-----