striping unwanted characters from $string part.2
| From: | mailing | Date: | Mon, 19 May 2003 17:01:44 +0000 |
| Subject: | striping unwanted characters from $string part.2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148183@lists.php.net to get a copy of this message | ||
Many thanks to those that replied with my previous query.
However the problem continues in another guise.
Here is my link:
print("<a
href=\"javascript:openWin5('tellafriend.php?id=$siteid&title=$sitetitle')\">
<img src='images/image_icons/edit.gif' border='0'>
$tell_a_friend</a>;");
The problem is with the $title variable. If the $title contains things
like:
Müller
Amoré
then the ü and é look very ugly in any dynamically generated links changeing
to things like %33 etc, and any word like:
nation¹s
We're
break the link, is there a way that I can strip the ''s and automatically
change things like ü and é to u and e ?
Many thanks once again
James