有一天,我收到关于Joomla 2.5的文章变得怪异和乱码的投诉。我发现在网上阅读之后,这可能是因为编码不是utf8引起的。所以我在php.ini,nginx.conf和amp;上做了一些配置。 my.cnf并设法将utf8作为输出
$ curl -I http://192.168.150.129
HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Thu, 10 Dec 2015 04:33:21 GMT
Content-Type: text/html; charset=utf-8
mysql> show variables like 'char%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.01 sec)
但我仍在发表文章上发表文章。
任何提示或提示都将不胜感激。