fix a bug, it's parse utf16 text.

This commit is contained in:
2020-10-10 15:45:07 +08:00
parent c2a7691e5b
commit 7b79a61874

View File

@@ -134,6 +134,12 @@ namespace hgl
if(cs==UTF8CharSet)
str=u8_to_u16((u8char *)data,size,char_count);
else
if(cs==UTF16BECharSet||cs==UTF16LECharSet)
{
str=(u16char *)data;
char_count=size>>1;
}
else
{
#ifdef __ANDROID__
delete[] data;