Tags

,

1. Set defualt language of html page to Thai.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='th-TH' xml:lang='th-TH' xmlns='http://www.w3.org/1999/xhtml'>

2. Set charset = utf-8
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />

3. Set database encoding = utf8_unicode
MySQL connection collation: utr8_unicode_ci
Advertisements