Web Text Encoding
       元则
Decode           Transfer                              Encode




                                                        text
browser                              Web Server
                                                       editor
          Content-Type: charset=
                                                       save as ...
                                     Default charset

                        html


                  <meta charset=””
名词

• content-type
• charset
• encoding
• escape
Html

• http头部的content-type > html meta 标签
  > 链接到外部资源标签的charset属性

• 显示字符:原字符字符, char reference,
  html entity (€   &#8364;   &euro;)
url, form

• url: ASCII only, Percent encoding
• form submit
• ajax submit
Javascript

• String.fromCharCode: 通过unicode数值得
  到对应字符

• charCodeAt:得到字符unicode数值
• escape, encodeURI, encodeURIComponent
alipay
•   page, uisvr gbk, why gbk?

•   js css utf-8

•   ajax utf-8

•   sofa

•   login goto
•   浏览器在地址栏输入中
    文参数

•   调试工具
Web encoding 元则

Web encoding 元则