* call mb_internal_encoding("UTF-8") at the head of my PHP scripts
* MySQL tables all have DEFAULT CHARSET=utf8 > COLLATE=utf8_unicode_ci
* call mysql_set_charset('utf8') immediately after I connect to the DB with mysql_connect().
* call header('Content-Type: text/html; charset=utf-8') before outputting anything to the browser.
* specify <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> in the HEAD of my HTML.
* FORM tags all have accept-charset="UTF-8".
* MySQL tables all have DEFAULT CHARSET=utf8 > COLLATE=utf8_unicode_ci
* call mysql_set_charset('utf8') immediately after I connect to the DB with mysql_connect().
* call header('Content-Type: text/html; charset=utf-8') before outputting anything to the browser.
* specify <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> in the HEAD of my HTML.
* FORM tags all have accept-charset="UTF-8".
No comments:
Post a Comment