What is the difference between utf8 and UTF-8

WBOY
Release: 2016-07-25 08:54:18
Original
1349 people have browsed it
  1. header('Content-type: text/html; charset:UTF-8');
Copy code

HTML document:

Copy code

MySQL statement:

  1. mysql_query("set names utf8");
Copy code

Summary: Use the alias "utf8" of "utf-8" in MySQL, and always use uppercase "UTF-8" elsewhere.



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!