URGENT: fixed file loading if a source file was not in UTF-8

This commit is contained in:
Qv2ray-dev 2020-03-21 08:40:39 +08:00
parent 6b46f5981a
commit e8266d1afa
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
4952
4954

View File

@ -47,7 +47,7 @@ namespace Qv2ray::common
if (state.invalidChars > 0)
{
LOG(MODULE_FILEIO, "Not a valid UTF-8 sequence: " + source->fileName())
return source->readAll();
return byteArray;
}
else
{