Skip to content

Instantly share code, notes, and snippets.

@zen010101
Created January 26, 2025 09:22
Show Gist options
  • Save zen010101/fb6cb6dfeba86bcbedf20f4fed824d31 to your computer and use it in GitHub Desktop.
Save zen010101/fb6cb6dfeba86bcbedf20f4fed824d31 to your computer and use it in GitHub Desktop.
utf8str := 'Hello𪚥World';
Windows.SetConsoleOutputCP(CP_UTF8);
System.SetTextCodePage(Output, CP_UTF8);
Writeln(utf8str);
ConsoleWrite(utf8str); // wrong as Utf8ToConsole is called which always convert the string into CP_OEM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment