mysql数据库-utf8编码详解-上海网站建设公司

中文乱码问题经常会出现数据库、数据表、字段编码格式不一致,要保持编码格式与数据表编码格式一致首先要保持文件的编码格式、html页面的编码格式同数据库一致,再选择编码格式为utf-8或gb2312或gbk,mysql数据库编码格式详解:


utf8_bin -> Unicode (多语言), 二进制 
utf8_czech_ci -> 捷克语, 不区分大小写 
utf8_danish_ci -> 丹麦语, 不区分大小写 
utf8_esperanto_ci -> Esperanto, 不区分大小写 
utf8_estonian_ci -> 爱沙尼亚语, 不区分大小写 
utf8_general_ci -> Unicode (多语言), 不区分大小写 
utf8_hungarian_ci -> 匈牙利语, 不区分大小写 
utf8_icelandic_ci -> 冰岛语, 不区分大小写 
utf8_latvian_ci -> 拉脱维亚语, 不区分大小写 
utf8_lithuanian_ci -> 立陶宛语, 不区分大小写 
utf8_persian_ci -> 波斯语, 不区分大小写 
utf8_polish_ci -> 波兰语, 不区分大小写 
utf8_roman_ci -> 西欧, 不区分大小写 
utf8_romanian_ci -> 罗马尼亚语, 不区分大小写 
utf8_slovak_ci -> 斯洛伐克语, 不区分大小写 
utf8_slovenian_ci -> 斯洛文尼亚语, 不区分大小写 
utf8_spanish2_ci -> 传统西班牙语, 不区分大小写 
utf8_spanish_ci -> 西班牙语, 不区分大小写 
utf8_swedish_ci -> 瑞典语, 不区分大小写 
utf8_turkish_ci -> 土耳其语, 不区分大小写