From b265ccd653e43beeaba0f20970d86c343b36d35c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20St=C3=B6ckl?= Date: Thu, 1 Aug 2024 17:23:41 +0200 Subject: [PATCH] Fix escaping with dec instead of hex --- src/pokestr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pokestr.rs b/src/pokestr.rs index db8b7be..fadb628 100644 --- a/src/pokestr.rs +++ b/src/pokestr.rs @@ -54,7 +54,7 @@ impl TryFrom<&Gen4Str> for String { Utf16Grapheme::Comp(c0, c1) => vec![*c0, *c1] } } - Err(c) => { format!("{}{}", ESCAPE_CODEPOINT, c).encode_utf16().collect() } + Err(c) => { format!("{}{:04x}", ESCAPE_CODEPOINT, c).encode_utf16().collect() } } } ).collect::>()).expect("Invalid UTF16 character, check the character mapping and recompile");