Skip to content
Advertisement

special characters turn into question marks php html

I read all the topics found on stackoverflow and other forums, it’s hosted on hostgator and I’ve never had problems with their servers before although quotes for example are transformed into question marks, normal ones not with black diamonds or anything. Here is what I’ve tried:

JavaScript

and

JavaScript

This is what I use for doctype if that matters:

JavaScript

I use Unitron for osx to write my code and I’ve checked that the files should include utf-8.

And the text that I am trying to display is just html, within a php page.

Anyone have any clue on how to help me?

Advertisement

Answer

You should use htmlentities to convert any entities in your text to html entities; for example, the copyright sign will become © ©

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement