Wednesday, 29 April 2009

php displaying question mark icon

found that odd question mark icons in the display of MySQL database content through PHP was due to the http encoding setting in the HTML header of the page:

Standard entry was:
meta http-equiv="Content-Type" content="text/html; charset=utf-8" /

changed to:
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /

and, as if by magic...the icons now display correctly (e.g. em dash characters).

No comments: