unescape utf characters when saving configs

This commit is contained in:
RaidMax 2022-02-25 09:44:28 -06:00
parent bd6c0dd5be
commit b087d4c8de

View File

@ -27,6 +27,7 @@ namespace IW4MAdmin.Application.Misc
_serializerOptions = new JsonSerializerOptions
{
WriteIndented = true,
Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping
};
_serializerOptions.Converters.Add(new JsonStringEnumConverter());
_onSaving = new SemaphoreSlim(1, 1);