/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
void OneUTF82Unicode(const char* utf_char, char* unicode_char)
{
//unicode: 0x192->110010010 ,utf8:0xC692->11000110|10010010
//小端序
int utf_length = strlen(utf_char);
//0x3F->00111111
switch(utf_length)
{
case 1:
unicode_char[0] = utf_char[0];
unicode_char[1] = 0;
break;
case 2:
unicode_char[0] = (utf_char[1] & 0x3F) | ((utf_char[0] & 0x3) << 6);
unicode_char[1] = (utf_char[0] & 0x3C) >> 2;
break;
case 3:
unicode_char[0] = (utf_char[2] & 0x3F) | ((utf_char[1] & 0x3) << 6);
uni
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ void OneUTF82Unicode(const char* utf_char, char* unicode_char