From cb90b6e807d0cc5d8bb6f1533082c51a6e6de400 Mon Sep 17 00:00:00 2001 From: MrS-ibra Date: Thu, 19 Mar 2026 22:41:29 +0300 Subject: [PATCH] prevent crash when serializing non ascii characters to json --- .../GameEngine/Include/GameNetwork/GeneralsOnline/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/json.hpp b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/json.hpp index ab95496128d..038cd86171d 100644 --- a/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/json.hpp +++ b/GeneralsMD/Code/GameEngine/Include/GameNetwork/GeneralsOnline/json.hpp @@ -21298,7 +21298,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec string_t dump(const int indent = -1, const char indent_char = ' ', const bool ensure_ascii = false, - const error_handler_t error_handler = error_handler_t::strict) const + const error_handler_t error_handler = error_handler_t::replace) const { string_t result; serializer s(detail::output_adapter(result), indent_char, error_handler); @@ -25507,4 +25507,4 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC -#endif // INCLUDE_NLOHMANN_JSON_HPP_ \ No newline at end of file +#endif // INCLUDE_NLOHMANN_JSON_HPP_