-1

i have little php site. I add to header this;

<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

but still site doesn't show some UTF-8 characters here is example

http://tmd2.org/sozluk/?aksiyon=ara&terimId=4759

altb�l�m

what can i do ?

Cihan Zengin
  • 103
  • 2
  • 12
  • 1
    Make sure the PHP script, and all other included scripts as well, are UTF-8 encoded (UTF-8 without BOM) as well. With Notepad++ (Windows) you could even convert an existing ANSI script to a UTF-8 script. – hherger Feb 03 '16 at 09:03
  • And also you should check your db's collation if you are fetching your data from a db – Cihan Uygun Feb 03 '16 at 09:05
  • 1
    You're telling your browser to interpret your page in UTF-8. **But is it actually UTF-8?!** (Hint: no, it isn't.) – deceze Feb 03 '16 at 09:13
  • Actually i don't understand php so much i just modified html and css. Because i can't understand ho did this all what you said :) – Cihan Zengin Feb 03 '16 at 09:22
  • @CihanZengin You should change your files to actually be encoded in UTF-8. This can be done with a number of tools (but shouldn't be done by manually replacing stuff with a text editor, as the ‘answer’ below suggests); your favourite search engine could help you find one. – Biffen Feb 03 '16 at 09:35
  • Most likely you simply need to *save the file(s) in UTF-8 in your text editor that you're using to edit the files.* – deceze Feb 03 '16 at 09:36
  • yes. I saved all files with save as with encoding utf-8 but nothing changed – Cihan Zengin Feb 03 '16 at 09:42
  • You say below in a comment that the content actually comes from a database. **Have you read the duplicate** which talks about this at length? – deceze Feb 03 '16 at 09:50

1 Answers1

-3

i opened your web site http://tmd2.org/sozluk/?aksiyon=ara&terimId=4759

i think ,you need set your editor encoding to UTF-8,for example,use "sublime text" or "windows notebook",open your script ,find the wrong code and replace it!

<td width="98%"><strong>1-</strong> altb�l�m <font size="1px">
suibber
  • 267
  • 1
  • 6