linux

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"

| Tags:
Syndicate content