UTF-8 LATIN SMALL LETTER U WITH DIAERESIS (kleines ü) 11000011 10111100
Bimaske für 2 Bytes-UTF-8                      110xxxxx 10xxxxxx

c= 11000011
c2=10111100

31=0x1f=00011111
63=0x3F=00111111
128=0x80=10000000

MySQL\strings\ctype-utf8.c
((c & 0x1f) << 6) | (c2 ^ 0x80);

http://aktuell.de.selfhtml.org/artikel/javascript/utf8b64/utf8.htm
((c & 31) << 6) | (c2 & 63);
((c & 0x1f) << 6) | (c2 & 0x3F);






c & 0x1f=00000011

<< 6=11000000


c2 ^ 0x80=10111100

((c & 0x1f)<<6) 11000000
(c2 ^ 0x80)     10111100

|               11111100=0xFC

((c & 31)<<6) = 11000000
(c2 & 63)     = 00111100

|             11111100=0xFC



10111100
00111111
Coldfusion
->SerializeJSON

GCC
->Cross-Compiling

MySql
->Prep. Stmts

SQLite3
->Mem-Structure
->Prep. Stmts
->ToUTF8-Func
->ToWin1252-Func

UTF-8
->UTF-8 To UCS2

VB
->MD5-Class

VC++
->BZip2
->ATL


HOME