Hi guys I have an issue to display chinese character in simple php file, I cannot figure out how to get it solved
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<?php
define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-type" value="text/html; charset=UTF-8" />
</head>
<body>
电视机/電視機
</body>
</html>
I am think this can be the issue of apache or php.ini configuration. Any idea how to solve this issue?
Use
<meta charset="utf-8">before<title>Some old style browers checks http header first, so you may set
or change your web server config file
Example in Nginx:
add this lines after
server {Example in Apache:
or