Atitit. Judging the encoding of Chinese characters regedit inside the Registry REG_SZ
1 . can be judged by Unicode encoding 1
2 . have the following split UCS2 big head thief code 1
3 . use thief code test 1
4 . REG_DWORD read inside the registry 2
1.
can be judged by Unicode encoding
byte[] AI={ -, 103, Wuyi, 0, Wuyi, 0, the, 0};
byte[] A2="Ben".getBytes("Unicode");
[-2,-1, 103, 44]
can be judged to be Unicode encoding
2.
have the following split UCS2 big head thief code
java UCS2 encoding 2014-08-28 21:06:00
Category: Java
byte[] arr = deliver.getmessagecontent (). GetBytes ();
String content = new String (arr, "unicodebigunmarked");
Author :: ★ (Attilax) >>> nickname : old-Wow paw   (   full name:: ATTILAX AKBAR AL RAPANUI&NBSP, Attilax &NBSP, " " Al   Rapa Nui &NBSP,   Kanji name: Ayron, Email:[email protected]
reprint Please indicate source: http://www.cnblogs.com/attilax/
3.
use thief code test
byte[] AI={ -, 103, Wuyi, 0, Wuyi, 0, the, 0};
System. out.println( New String(AI,"unicodelittleunmarked") );
Results OK
4.
REG_DWORD read inside the registry
byte[]==== [-2,-1, 103,]
Main data the first array inside ... ret byte[0] go OK lan .
Atitit. Code for judging Chinese characters REG_SZ in regedit registry