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

        <bdo id='xAixt'></bdo><ul id='xAixt'></ul>
      <legend id='xAixt'><style id='xAixt'><dir id='xAixt'><q id='xAixt'></q></dir></style></legend>

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

        php mysql 插入 utf-8

        php mysql insert into utf-8(php mysql 插入 utf-8)
      2. <i id='vAO0v'><tr id='vAO0v'><dt id='vAO0v'><q id='vAO0v'><span id='vAO0v'><b id='vAO0v'><form id='vAO0v'><ins id='vAO0v'></ins><ul id='vAO0v'></ul><sub id='vAO0v'></sub></form><legend id='vAO0v'></legend><bdo id='vAO0v'><pre id='vAO0v'><center id='vAO0v'></center></pre></bdo></b><th id='vAO0v'></th></span></q></dt></tr></i><div id='vAO0v'><tfoot id='vAO0v'></tfoot><dl id='vAO0v'><fieldset id='vAO0v'></fieldset></dl></div>
            <tbody id='vAO0v'></tbody>
            <bdo id='vAO0v'></bdo><ul id='vAO0v'></ul>

                <tfoot id='vAO0v'></tfoot>
                1. <small id='vAO0v'></small><noframes id='vAO0v'>

                  <legend id='vAO0v'><style id='vAO0v'><dir id='vAO0v'><q id='vAO0v'></q></dir></style></legend>

                  本文介绍了php mysql 插入 utf-8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我将使用 PHP 在 mysql 中插入一些文章.

                  I'm going to insert into some articles in mysql using PHP.

                  这是 phpMyAdmin 信息:

                  This is phpMyAdmin information:

                  Server: localhost via TCP/IP
                  Server version: 5.0.85-community-nt
                  Protocol version: 10
                  User: root@localhost
                  MySQL charset: UTF-8 Unicode (utf8) 
                  

                  这是我的餐桌信息:

                  Table   Action  Records 1  Type  Collation  Size  Overhead  
                  article       10 InnoDB utf8_unicode_ci 16.0 KiB - 
                  1 table(s)  Sum 10 InnoDB utf8_unicode_ci 16.0 KiB 0 B
                  

                  我加了

                  <?php header('Content-type:text/html; charset=utf-8'); ?> 
                  

                  在我的 php 代码顶部,添加 mysql_query("set names 'utf-8'"); 之前 mysql_select_db("data",$db1);

                  in the top of my php code, add mysql_query("set names 'utf-8'"); before mysql_select_db("data",$db1);

                  但是mysql里面的数据还是像

                  but the data in the mysql is still like

                  pi freddi
                  

                  如何正确显示数据?

                  推荐答案

                  去掉连字符.应该是:

                  mysql_query("SET NAMES utf8");
                  

                  这篇关于php mysql 插入 utf-8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                      <small id='5wuro'></small><noframes id='5wuro'>

                          <tbody id='5wuro'></tbody>

                        <tfoot id='5wuro'></tfoot>

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