0

I'm getting some strings out of MYSQL like this:

ϼ³Ï½ˆÏ½Ï½— ϼ­Ï½… ϼ¹Ï½Ï½•Ͻ’ ϼ¢Ï½Ï½„Ͻ™ BY ϼ¹Ï½•ϽϽϽ™Ï½–ϽˆÏ½“
 ϼ¶Ï¼¯Ï¼©Ï¼
 ɖ¢ Ä¿‚ Ç›® ƨ™ A F Â

The are titles that have been submitted by a user, but I cant seem to output them as regular characters. i suspect they might be Japanese characters, but I am not sure. The top of my html looks like this:

<meta charset="utf-8">

My MYSQL database encoded as:

 utf8mb4_unicode_ci 

Is there a way to handle this and output them in HTML as readable characters? I'm pulling them out of mysql as a regular string - but they still output as garbage instead of legible characters. Is there a way to fix this? Or is this not utf-8?

Fight Fire With Fire
  • 1,626
  • 3
  • 19
  • 28

1 Answers1

0

update php.ini:

default_charset = "utf-8";

update your mysql SCHEMA:

... DEFAULT CHARACTER SET UTF-8
Tom
  • 432
  • 2
  • 9