From 001e60dbdef75bc288d17589700a0c0cdab7cfce Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 12 Dec 2019 10:33:33 +0100 Subject: [PATCH] Output: Fix \u-format string escaping --- Il2CppInspector/Reflection/Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector/Reflection/Extensions.cs b/Il2CppInspector/Reflection/Extensions.cs index f5c0e51..b6b1d40 100644 --- a/Il2CppInspector/Reflection/Extensions.cs +++ b/Il2CppInspector/Reflection/Extensions.cs @@ -83,7 +83,7 @@ namespace Il2CppInspector.Reflection // Standard escape characters s.Append(escapeChars.ContainsKey(str[i]) ? escapeChars[str[i]] // Replace everything else with UTF-16 Unicode - : str[i] < 32 || str[i] > 126 ? @"\u" + $"{str[i]:X4}" + : str[i] < 32 || str[i] > 126 ? @"\u" + $"{(int) str[i]:X4}" : str[i].ToString()); return $"\"{s}\""; }