Search code examples
phphtmlmysqlcssstylesheet

special characters replaced by question mark


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

Solution

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