jehaz wrote:Hi,
I have a website on a server that apparently uses an older version of PHP.
If I have a statement like:
echo ("Hello - I am John's friend");
Both the apostophe and the hyphen will be displayed as question marks.
Any idea how to resolve this?
Thanks.
Hi Jenaz. If you are getting a question mark, have you tried escaping the apostrophe's ?
example :
echo ('Hello - I am John\'s friend'); //notice the backslash and use of single quote
also, is this data coming from a database or is in utf-8 format? If so, that is your problem and there are ways to correct this. If not, try the escaping and that shoudl also fix your problem. One method is to add this to your configuration file :
CarpConf(’encodingout’,'UTF-8′);