Browsing articles tagged with " encode"
กำหนด Encoding ให้กับหน้าเวป
ถ้าใช้ใน PHP ให้กำหนด
1 | header ("Content-type: text/html; charset=utf-8"); |
แต่ถ้าใช้ใน MySQL ให้กำหนด
1 | mysql_query("SET NAMES UTF8"); |
แต่ถ้าใช้ใน HTML ให้กำหนด
1 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |

