Fix UTF-8 encoding read in 2 places

This commit is contained in:
Wojtek Figat
2021-04-23 12:47:17 +02:00
parent bbfd80dcb1
commit c28215b93e
2 changed files with 3 additions and 3 deletions

View File

@@ -99,10 +99,10 @@ namespace Serialization
{
auto e = SERIALIZE_FIND_MEMBER(stream, "Id");
if (e != stream.MemberEnd())
v.Id = e->value.GetString();
v.Id.SetUTF8(e->value.GetString(), e->value.GetStringLength());
e = SERIALIZE_FIND_MEMBER(stream, "Value");
if (e != stream.MemberEnd())
v.Value = e->value.GetString();
v.Value.SetUTF8(e->value.GetString(), e->value.GetStringLength());
}
else
{

View File

@@ -120,7 +120,7 @@ Asset::LoadResult LocalizedStringTable::loadAsset()
{
e.Resize(value.Size());
for (int32 q = 0; q < e.Count(); q++)
e[q] = value[q].GetString();
e[q] = value[q].GetText();
}
}
}