Character Set Locations

A few of the programmers in my group were recently talking about how to make sure all of our character sets were identical. Here are all of the places that I have found to control character encoding (for LAMP sites):

mysql

alter database db_name default character set utf8;
alter table table_name default character set utf8;

(to determine character set, use show create database db_name)

php.ini

default_charset = "utf-8"

httpd.conf

AddDefaultCharset utf-8

*.html

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

Are there any others that I may have missed?

| Tags:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options