0

I am trying to get and display data from MySQL, and everything is working fine, except that cyrillic characters get replaced by question marks '?'. I have implemented all recomendations from this answer. I have my MySQL database and it's tables' collation set to 'utf8-general-ci'. I have the <meta charset=utf-8> tag in my html file. Still get this problem.

Community
  • 1
  • 1
Rafael Sofi-zada
  • 511
  • 3
  • 14
  • Is your PHP file saved in UTF-8 encoding? Check your editor. Most provide this in "save as", "options", "settings" or other menu. I would also wrap "utf-8" in quotes in the meta tag. – trincot Jul 17 '16 at 20:30
  • http://stackoverflow.com/a/38363567/1766831 gives a more specific answer -- namely why you get question marks. – Rick James Jul 18 '16 at 05:44

0 Answers0