0

I have an Issue with the UTF-8 Charset. When I define UTF-8 as the used charset on my Webpage, all my special characters transform into �. I tried the following methods and everything gave me the same result.

via PHP

 header('Content-Type:text/html; charset=UTF-8');

via HTML

 <meta charset="utf-8">

via .htaccess

 AddDefaultCharset UTF-8

EDIT: All my Databases in MySQL (where my Text-Content lies) are defined as utf8_general_ci


+EDIT: Solved The Issue lied in PDO. After adding following code it worked.

$dbh->exec("set names utf8");
slavoo
  • 5,798
  • 64
  • 37
  • 39
Jyunpey
  • 1
  • 2
  • 1
    If the data is coming from a database then this too must be set for utf-8. Also, what font are you using - this may not have the particular characters that you need to display. –  Oct 04 '14 at 00:30
  • 2
    Did you make sure that your text file is saved as utf-8 ? in notepad++ or something – el3ien Oct 04 '14 at 00:30

1 Answers1

0

Most fonts don't include all UNICODE characters, are you sure the font you use on your website can render character you are displaying?

You can download Noto in any form and shape to test if that is your issue.

nana
  • 4,426
  • 1
  • 34
  • 48