diff options
author | Tomáš Pazdiora <tomas.pazdiora@gmail.com> | 2023-04-08 17:49:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-08 17:49:39 +0200 |
commit | aaf3b23debc1fe1a06733c8c6468fb84233cc44f (patch) | |
tree | c18392a399ef7369b5df1719ab7547e649408bb7 /examples/common.h | |
parent | f2d1c472946dee2aba9077e8df73346796752b10 (diff) |
fix for windows utf-8 input (#840)
Use UTF-16 as input on Windows, since UTF-8 does not work and reads multibyte characters as zeros
Diffstat (limited to 'examples/common.h')
-rw-r--r-- | examples/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/common.h b/examples/common.h index 1505aa92..7a8848f9 100644 --- a/examples/common.h +++ b/examples/common.h @@ -92,4 +92,5 @@ void set_console_color(console_state & con_st, console_color_t color); #if defined (_WIN32) void win32_console_init(bool enable_color); +void win32_utf8_encode(const std::wstring & wstr, std::string & str); #endif |