special characters replaced by question mark

1.7k views Asked by At

My website is replacing an apostrophe (') with a question mark (?) while rendering the page.

See the deal - my kitchen cook's at

 www.dealschintu.com

It is a simple HTML page written by me which does the following

  1. Connect to MySQL database
  2. Retrieve title
  3. Display
2

There are 2 answers

0
Anmol Dubey On BEST ANSWER

I got it working by changing the php file encoding from utf-8 to iso-8859-1

0
Hypernami On

Add this between the <head> tags of your website:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

It should do the trick.