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:
header('Content-Type: text/html; charset=utf-8');
and
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
This is what I use for doctype if that matters:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
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?
Check that your file is encoded in UTF8, for instance with Notepad++ go to "Encoding" > "Convert in UTF8" and save the file.
You should use htmlentities to convert any entities in your text to html entities; for example, the copyright sign will become © ©
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With