Skip to content

Instantly share code, notes, and snippets.

@woliveiras
Created November 5, 2014 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woliveiras/0f9a9638fa92269fe119 to your computer and use it in GitHub Desktop.
Save woliveiras/0f9a9638fa92269fe119 to your computer and use it in GitHub Desktop.
Charset UTF-8 PHP/MySQL/Apache
php.ini contents
default_charset = "utf-8"
my.cnf contents
[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8
default-character-set=utf8
default-collation=utf8_unicode_ci
character-set-client = utf8
httpd.conf contents
AddDefaultCharset UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment