• <tfoot id='50aFm'></tfoot>
      <bdo id='50aFm'></bdo><ul id='50aFm'></ul>

      <legend id='50aFm'><style id='50aFm'><dir id='50aFm'><q id='50aFm'></q></dir></style></legend>

    1. <small id='50aFm'></small><noframes id='50aFm'>

    2. <i id='50aFm'><tr id='50aFm'><dt id='50aFm'><q id='50aFm'><span id='50aFm'><b id='50aFm'><form id='50aFm'><ins id='50aFm'></ins><ul id='50aFm'></ul><sub id='50aFm'></sub></form><legend id='50aFm'></legend><bdo id='50aFm'><pre id='50aFm'><center id='50aFm'></center></pre></bdo></b><th id='50aFm'></th></span></q></dt></tr></i><div id='50aFm'><tfoot id='50aFm'></tfoot><dl id='50aFm'><fieldset id='50aFm'></fieldset></dl></div>

        土耳其语字符显示不正确

        时间:2023-10-05
        <legend id='zC299'><style id='zC299'><dir id='zC299'><q id='zC299'></q></dir></style></legend>
        1. <i id='zC299'><tr id='zC299'><dt id='zC299'><q id='zC299'><span id='zC299'><b id='zC299'><form id='zC299'><ins id='zC299'></ins><ul id='zC299'></ul><sub id='zC299'></sub></form><legend id='zC299'></legend><bdo id='zC299'><pre id='zC299'><center id='zC299'></center></pre></bdo></b><th id='zC299'></th></span></q></dt></tr></i><div id='zC299'><tfoot id='zC299'></tfoot><dl id='zC299'><fieldset id='zC299'></fieldset></dl></div>

          <tfoot id='zC299'></tfoot>

              <bdo id='zC299'></bdo><ul id='zC299'></ul>

              <small id='zC299'></small><noframes id='zC299'>

                  <tbody id='zC299'></tbody>
                • 本文介绍了土耳其语字符显示不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  MySql 数据库使用 utf-8 编码并且数据存储正确.我使用 set_name utf8 查询来确保调用的数据是 utf-8 编码的.只要标题字符集是 utf-8,数据库中的所有变量都可以正常工作,但静态 html 字符不能正常工作.当我将标题字符集设置为 ISO-8859-9 变量时,显示不同,而 html 字符工作正常.有人可以帮助我吗?utf8 编码:http://oi48.tinypic.com/289kje1.jpg html 标签显示有问题values.but 来自数据库的 php 数据(绿色的,例如 ağişler)是可以的.ISO 编码 http://oi50.tinypic.com/287n2ph.jpg 这次html没问题但是php数据显示错误.

                  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? Utf8 encoding: http://oi48.tinypic.com/289kje1.jpg html tags have problem displaying values.but php data(green ones e.g. ağişler) that come from database is ok.ISO encoding http://oi50.tinypic.com/287n2ph.jpg this time the html is ok but php data are displayed wrong.

                  <?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" />
                  

                  推荐答案

                  您可以尝试在文件顶部显式添加内容类型,如下所示

                  You can try explicitly adding content type at the top of your file as below

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

                  并从您的代码中删除以下内容..

                  and remove the below from your code..

                  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>
                  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                  <title>Untitled Document</title>
                  </head>
                  <body>
                  <?php echo "for example Ş and İ "; ?>   
                  </body>
                  </html>
                  

                  上面的代码给了我下面的输出:

                  The above code gives me the below output:

                  这篇关于土耳其语字符显示不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何检测是否必须对字符串应用 UTF-8 解码或编码 下一篇:确保 PHP 中的有效 UTF-8

                  相关文章

                  最新文章

                    • <bdo id='G7okc'></bdo><ul id='G7okc'></ul>

                    <tfoot id='G7okc'></tfoot>
                  1. <legend id='G7okc'><style id='G7okc'><dir id='G7okc'><q id='G7okc'></q></dir></style></legend>
                    <i id='G7okc'><tr id='G7okc'><dt id='G7okc'><q id='G7okc'><span id='G7okc'><b id='G7okc'><form id='G7okc'><ins id='G7okc'></ins><ul id='G7okc'></ul><sub id='G7okc'></sub></form><legend id='G7okc'></legend><bdo id='G7okc'><pre id='G7okc'><center id='G7okc'></center></pre></bdo></b><th id='G7okc'></th></span></q></dt></tr></i><div id='G7okc'><tfoot id='G7okc'></tfoot><dl id='G7okc'><fieldset id='G7okc'></fieldset></dl></div>

                    1. <small id='G7okc'></small><noframes id='G7okc'>