From 25cd2fee89566a070ffa53ede3f37b2f2882b38d Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 13 Jul 2023 23:09:09 +0800 Subject: [PATCH] use utf8 encode for TextInputStream.cpp --- src/IO/TextInputStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IO/TextInputStream.cpp b/src/IO/TextInputStream.cpp index 248e543..f490271 100644 --- a/src/IO/TextInputStream.cpp +++ b/src/IO/TextInputStream.cpp @@ -1,4 +1,4 @@ -#include +#include namespace hgl { @@ -69,7 +69,7 @@ namespace hgl { uint8 *p=buffer; - if(stream_pos==0) //×ʼ£¬ÄǼì²âÒ»ÏÂBOMÍ· + if(stream_pos==0) //最开始,那检测一下BOM头 { if(cur_buf_size>=2) {