diff options
-rw-r--r-- | src/Main/TextUserInterface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Main/TextUserInterface.cpp b/src/Main/TextUserInterface.cpp index 69d45af4..4de2cb2d 100644 --- a/src/Main/TextUserInterface.cpp +++ b/src/Main/TextUserInterface.cpp @@ -41,7 +41,9 @@ namespace VeraCrypt #endif { FInputStream.reset (new wxFFileInputStream (stdin)); - TextInputStream.reset (new wxTextInputStream (*FInputStream)); + // Set fallback encoding of the stream converter to UTF-8 + // to make sure we interpret multibyte symbols properly + TextInputStream.reset (new wxTextInputStream (*FInputStream, wxT(" \t"), wxConvAuto(wxFONTENCODING_UTF8))); } } |