1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

JSON: Use UTF8 encoding by default

This commit is contained in:
Anthony Nicholls 2024-07-17 19:59:24 +01:00
parent 379afb1e3f
commit 1e5c88899e
4 changed files with 288 additions and 71 deletions

View file

@ -120,7 +120,7 @@ void DynamicObject::writeAsJSON (OutputStream& out, const JSON::FormatOptions& f
JSONFormatter::writeSpaces (out, format.getIndentLevel() + JSONFormatter::indentSize);
out << '"';
JSONFormatter::writeString (out, properties.getName (i));
JSONFormatter::writeString (out, properties.getName (i), format.getEncoding());
out << "\":";
if (format.getSpacing() != JSON::Spacing::none)