Fix UTF-8 and UTF-16 encoding support usage in Json resources
Closes #310 Closes #27
This commit is contained in:
@@ -1710,7 +1710,10 @@ String Actor::ToJson()
|
||||
rapidjson_flax::StringBuffer buffer;
|
||||
CompactJsonWriter writer(buffer);
|
||||
writer.SceneObject(this);
|
||||
return String(buffer.GetString());
|
||||
String result;
|
||||
const char* c = buffer.GetString();
|
||||
result.SetUTF8(c, (int32)buffer.GetSize());
|
||||
return result;
|
||||
}
|
||||
|
||||
void Actor::FromJson(const StringAnsiView& json)
|
||||
|
||||
Reference in New Issue
Block a user