Home  >  Article  >  Backend Development  >  What is the difference between utf8 and UTF-8

What is the difference between utf8 and UTF-8

WBOY
WBOYOriginal
2016-07-25 08:54:181329browse
  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.



Statement:
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