UTF8 doesn’t get parsed by php, server related ? not file related

this is so weird, this has never happened to me. I’ve worked with utf-8 alot and this is the first time happening,
Since last week all my sites that had utf8 characters in files are now showing ? instead of the actual character!

the files are ok and I can see characters fine if I edit them,but after it gets processed by php it changes the utf-8 characters with ?.

Read More

the utf8 characters that were stored in database are loading just fine , but the problem is with the strings that are in php files.

Notice I said since last week, this means it happened all of a sudden and obviously something changed on server.
I contacted my hosting company but they have no clue what to look for and I don’t know what to tell them to look for.

any clue what could have been changed on the server?

so to conclude:

  • it’s not a database problem
  • it’s not a file encoding problem (I hope not, I have 30+ sites with different cms on each one, can not afford to edit them all)
  • it’s not a content-type issue in html because it’s getting parsed by php and turns utf8 characters to ?
  • it could alse be a wordpress problem,but I’m sure this happend after some changes on server side

screenshot1
screenshot2

Related posts

Leave a Reply

1 comment

    • it’s not a database problem – Check
    • it’s not a file encoding problem – THIS actually could be it
    • it’s not a content-type – Check (but make sure you write UTF-8 in meta tag lowercase !)
    • WordPress problem – Maybe with combination of file encoding

    I can imagine situation, when you deleted/disabled mb_string module for PHP and then edited your template using wordpress. Then your characted got shattered.