1. 首页
  2. 编程语言
  3. Java
  4. 识别文件编码格式

识别文件编码格式

上传者: 2018-12-27 13:17:40上传 JAVA文件 144.08KB 热度 66次
识别文本文件编码格式,可识别近30种编码格式 public static int GB2312 = 0; public static int GBK = 1; public static int GB18030 = 2; public static int HZ = 3; public static int BIG5 = 4; public static int CNS11643 = 5; public static int UTF8 = 6; public static int UTF8T = 7; public static int UTF8S = 8; public static int UNICODE = 9; public static int UNICODET = 10; public static int UNICODES = 11; public static int ISO2022CN = 12; public static int ISO2022CN_CNS = 13; public static int ISO2022CN_GB = 14; public static i nt EUC_KR = 15; public static int CP949 = 16; public static int ISO2022KR = 17; public static int JOHAB = 18; public static int SJIS = 19; public static int EUC_JP = 20; public static int ISO2022JP = 21; public static int ASCII = 22; public static int OTHER = 23; public static int TOTALTYPES = 24; nt EUC_KR = 15; public static int CP949 = 16; public static int ISO2022KR = 17; public static int JOHAB = 18; public static int SJIS = 19; public static int EUC_JP = 20; public static int ISO2022JP = 21; public static int ASCII = 22; public static int OTHER = 23; public static int TOTALTYPES = 24;
用户评论