mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-19 02:10:28 +08:00
URGENT: fixed file loading if a source file was not in UTF-8
This commit is contained in:
parent
6b46f5981a
commit
e8266d1afa
@ -1 +1 @@
|
||||
4952
|
||||
4954
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user