use utf8 encode for TextInputStream.cpp

This commit is contained in:
2023-07-13 23:09:09 +08:00
parent dd57965556
commit 25cd2fee89

View File

@@ -1,4 +1,4 @@
#include<hgl/io/TextInputStream.h>
#include<hgl/io/TextInputStream.h>
namespace hgl
{
@@ -69,7 +69,7 @@ namespace hgl
{
uint8 *p=buffer;
if(stream_pos==0) //<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>BOMͷ
if(stream_pos==0) //最开始,那检测一下BOM
{
if(cur_buf_size>=2)
{