From eb4d9e9323ff0b9ae771937730876537f2788e35 Mon Sep 17 00:00:00 2001 From: MAJigsaw77 <77043862+MAJigsaw77@users.noreply.github.com> Date: Wed, 29 Apr 2026 10:13:05 +0300 Subject: [PATCH] Patch `unicodes` not working properly on `Windows` Co-Authored-By: Karim Akra <144803230+KarimAkra@users.noreply.github.com> --- project.hxp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/project.hxp b/project.hxp index ca58e0c70..28ebc3dae 100644 --- a/project.hxp +++ b/project.hxp @@ -531,6 +531,14 @@ class Project extends HXProject { super(); + #if !target.unicode + if (isWindowsHost()) + { + // Enable code page 65001 for unicode support + Sys.command("chcp 65001 > nul"); + } + #end + envConfig = readEnvironmentFile("./.env"); flair(); @@ -956,16 +964,6 @@ class Project extends HXProject var unicodeCheck:String = "✓ "; var unicodeCross:String = "× "; - if (isWindowsHost()) - { - #if (!target.unicode) - // lime build tools uses neko (unless compiling with `-eval`), and neko on windows doesn't support UTF8/unicode characters - // so we need to remove our cute emoji! - unicodeCheck = "o "; - unicodeCross = "x "; - #end - } - for (flagStr in this.haxedefs.keys()) { if (!flagStr.startsWith(FeatureFlag.INVERSE_PREFIX))