zoukankan      html  css  js  c++  java
  • HTML meta charset 定义网页编码信息

    charset示例

    使用UTF8编码(国际化编码)

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    

    使用中文gb2312编码

    <meta http-equiv="content-type" content="text/html; charset=gb2312" />
    

     

    下面这些编码方式,比如:中文 GBK ,繁体中文 Big5 ,日文 EUC-JP ,韩文 EUC-KR 等,每种语言的编码方式是不同的,所以需要使用charset为网页提供了一种编码方式,否则页面很可能出现乱码.

    UTF-8 是没有国家的编码,也就是独立于任何一种语言,任何语言都可以使用(梦之都就使用了此编码).引用网址:http://www.dreamdu.com/xhtml/charset/

    下面是常用的编码示例

    • Arabic (ISO-8859-6)
    • Catalan (ISO-8859-1)
    • Chinese (Simplified) (GB2312)
    • Chinese (Traditional) (BIG5)
    • Danish (ISO-8859-1)
    • Dutch (ISO-8859-1)
    • English (ISO-8859-1)
    • Esperanto (ISO-8859-3)
    • Finnish (ISO-8859-1)
    • French (ISO-8859-1)
    • Georgian (UTF-8)
    • German (ISO-8859-1)
    • Hebrew (ISO-8859-8-I)
    • Hungarian (ISO-8859-2)
    • Irish Gaelic (ISO-8859-1)
    • Italian (ISO-8859-1)
    • Japanese (SHIFT_JIS)
    • Korean (EUC-KR)
    • Norwegian (Bokm?l) (ISO-8859-1)
    • Norwegian (Nynorsk) (ISO-8859-1)
    • Occitan (ISO-8859-1)
    • Portuguese (Brazil) (ISO-8859-1)
    • Portuguese (Portugal) (ISO-8859-1)
    • Romanian (ISO-8859-2)
    • Russian (ISO-8859-5)
    • Slovenian (ISO-8859-2)
    • Spanish (ISO-8859-1)
    • Swedish (ISO-8859-1)
    • Yiddish (UTF-8)
    一直在爬坑,爬自己挖下的坑,爬别人挖下的坑。
  • 相关阅读:
    yii 引入文件
    CodeForces 621C Wet Shark and Flowers
    面试题题解
    POJ 2251 Dungeon Master
    HDU 5935 Car(模拟)
    HDU 5938 Four Operations(暴力枚举)
    CodeForces 722C Destroying Array(并查集)
    HDU 5547 Sudoku(dfs)
    HDU 5583 Kingdom of Black and White(模拟)
    HDU 5512 Pagodas(等差数列)
  • 原文地址:https://www.cnblogs.com/Rabon/p/4241044.html
Copyright © 2011-2022 走看看