Atitit.判断汉字的编码 regedit 注册表里面的reg_sz

Atitit.判断汉字的编码 regedit 注册表里面的reg_sz

 

 

1. 可以判断出是unicode编码1

2. 有下面分割ucs2 大头小偷编码1

3. 使用小偷编码测试1

4. 注册表里面的reg_dword读取2

 

1. 可以判断出是unicode编码

 

byte[] ai={44, 103, 51, 0, 51, 0, 77, 0};

 

byte[] a2="本".getBytes("unicode");

[-2, -1, 103, 44]

 

 

可以判断出是unicode编码

 

2. 有下面分割ucs2 大头小偷编码

 

 java ucs2编码 2014-08-28 21:06:00

分类: Java

byte[] arr = deliver.getMessageContent().getBytes();

 

String content = new String( arr ,"UnicodeBigUnmarked");

作者::  ★(attilax)>>>   绰号:老哇的爪子  全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊  汉字名:艾龙,  EMAIL:1466519819@qq.com

转载请注明来源: http://blog.csdn.net/attilax

 

3. 使用小偷编码测试

 

byte[] ai={44, 103, 51, 0, 51, 0, 77, 0};

System.out.println( new String(ai,"UnicodeLittleUnmarked")  );

 

结果ok

 

4. 注册表里面的reg_dword读取

Byte[]====[-2, -1, 103, 44]

主要数据第一个数组里面儿了...ret byte[0]ok..

 

 

 

原文地址:https://www.cnblogs.com/attilax/p/15198604.html