Fixed Japanese text
This commit is contained in:
parent
8eecbaff3c
commit
f81fd7b1cd
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ static unsigned long UTF8ToCode(const unsigned char *string, unsigned int *bytes
|
||||||
case 3:
|
case 3:
|
||||||
case 4:
|
case 4:
|
||||||
length = zero_bit;
|
length = zero_bit;
|
||||||
charcode = (string[0] & (1 << (8 - zero_bit))) - 1;
|
charcode = string[0] & ((1 << (8 - zero_bit))) - 1;
|
||||||
|
|
||||||
for (unsigned int i = 1; i < zero_bit; ++i)
|
for (unsigned int i = 1; i < zero_bit; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue