RE: [PHP] RE: Re: high-bit characters
| From: | Richard Lynch | Date: | Sat, 09 Jun 2007 22:06:45 +0000 |
| Subject: | RE: [PHP] RE: Re: high-bit characters | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256496@lists.php.net to get a copy of this message | ||
On Sat, June 9, 2007 10:43 am, WeberSites LTD wrote:
> I do want to allow some chars so I'm trying to replace them
> like this :
>
> $post_text=str_replace(chr(146),"'",$post_text);
>
> or
>
> $post_text=str_replace("","'",$post_text);
>
>
> However, it seems that str_replace does not actually replace
> the chars cause they still end up in the output.
I dunno...
It's worked for me to rip out stupid Microsoft characters for years
and years now...
Paste actual source code, please.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?