Replacing ’ character in PHP
Posted
by richard
on Stack Overflow
See other posts from Stack Overflow
or by richard
Published on 2010-04-29T22:03:33Z
Indexed on
2010/05/02
9:47 UTC
Read the original article
Hit count: 112
Hello,
I'm having a hard time trying to replace this weird right single quote character. I'm using str_replace like this:
str_replace("’", '\u1234', $string);
It looks like I cannot figure out what character the quote really is. Even when I copy paste it directly from PHPMyAdmin it still doesn't work. Do I have to escape it somehow?
© Stack Overflow or respective owner