Question

i have the following code. it contain Turkish content. but i get the results including special charecter. so please give solution for that.

html code

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <META HTTP-EQUIV="content-language" CONTENT="TR"  />
<title>test</title>
</head>
<body>
Tarihçe
</body>
</html>

i will get Tarih�e instaed of Tarihçe.

Was it helpful?

Solution

If you can use Turkish encoding below will be the meta tag

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />

else code Tarihçe as

Tarih&ccedil;e

OTHER TIPS

Change the actual character encoding of the file to UTF-8, using whatever settings need to be used in the program you use to create and edit pages. The file is now in some 8-bit encoding, so the letter ç appears in the data as a byte that is not allowed in UTF-8; hence the � symbol (it indicates character-level data error).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top