Javascript UTF-8'';使用AJAX、PHP、HTML的符号

Javascript UTF-8'';使用AJAX、PHP、HTML的符号,javascript,php,jquery,ajax,utf-8,Javascript,Php,Jquery,Ajax,Utf 8,因此,基本上我在php中有以下代码: mysqli_query($connect,"SET NAMES 'utf8'"); mysqli_query($connect,"SET CHARACTER SET utf8"); mysqli_query($connect,"SET COLLATION_CONNECTION = 'utf8_unicode_ci'"); 在html: <form method="post" accept-charset="utf-8"> <div c

因此,基本上我在
php
中有以下代码:

mysqli_query($connect,"SET NAMES 'utf8'");
mysqli_query($connect,"SET CHARACTER SET utf8");
mysqli_query($connect,"SET COLLATION_CONNECTION = 'utf8_unicode_ci'");
html

<form method="post" accept-charset="utf-8">
 <div class="input-group">
   <input id="name" type="text" class="form-control" name="name"  value="<?php print $data["name"]; ?>" placeholder="<?php print $data["name"]; ?>">
                                                        </div>
</form> 
我正在使用
ajax
编辑
mysql
db,但是像ıİ、ĞĞ这样的字符显示为??但是字符“çççÜ”很好,我试了3-4个小时试图修复它,但找不到错误。 要获得完整的UFT8支持,您需要设置:

在php级别:将其放在php脚本的顶部

 <?php
 // Tell PHP that we're using UTF-8 strings until the end of the script
mb_internal_encoding('UTF-8');
至于html部分

<meta charset="UTF-8">

和utf8mb4,用于我之前编写的数据库,其中包含一个小清单,将涵盖PHP/MySQL应用程序中的大多数字符集问题。还有一个更深入的话题。最有可能的是,您会在其中一个或两个主题中找到解决方案。它可以在html输出中工作,但现在我的数据库中给出的值如您所说的“我使用了utf8mb4”
 // Tell PHP that we'll be outputting UTF-8 to the browser
mb_http_output('UTF-8');
<meta charset="UTF-8">