Turkish characters are not displayed correctly

Posted by tfeseas on Stack Overflow See other posts from Stack Overflow or by tfeseas
Published on 2012-11-22T16:58:18Z Indexed on 2012/11/22 16:59 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

MySql database uses utf-8 encoding and data are stored correctly.I use set_name utf8 query to make sure the data called are utf-8 encoded.all variables from database works fine as long as the header charset is utf-8,but the static html characters do not work properly.When i set header charset to ISO-8859-9 variables are displayed differenly while html characters work ok.can anyone help me?

<?php
    header('Content-Type: text/html; charset=ISO-8859-9');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head><title>noname</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

© Stack Overflow or respective owner

Related posts about php

Related posts about html