New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode encoding issues on Windows #175
Comments
It looks like the code page is not set to UTF-8. Could it be? |
This should help: chcp 65001 && vtm |
yeah, chcp did the job, thank you! should I create a bat file to run vtm or there's a way to set up unicode by default somewhere in the system properties (didn't find it) ? the screenshot i posted i got after running vtm from inside the archive from windows explorer |
thank you! |
Note: chcp 65001
cmake ./src -DCMAKE_BUILD_TYPE=Release "-GVisual Studio 17 2022"
cmake -E env "CXXFLAGS=/utf-8" cmake --build . --config Release |
Thanks for the note! I added this flag to CMakeLists.txt, also added it to CMakeSettings.json just in case, and added CMakeLists.txt: ...
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /DWIN32 /D_WINDOWS /W3 /GR /EHsc /bigobj /utf-8")
...
readme.md: git clone https://github.com/netxs-group/vtm.git
cd ./vtm
chcp 65001
cmake ./src -DCMAKE_BUILD_TYPE=Release "-GVisual Studio 16 2019"
cmake --build . --config Release
cd Release
vtm
git clone https://github.com/netxs-group/vtm.git
cd ./vtm
chcp 65001
cmake ./src -DCMAKE_BUILD_TYPE=Release "-GVisual Studio 17 2022"
cmake --build . --config Release
cd Release
vtm |
Question: Should we support for code pages other than 65001(UTF-8) on Windows? Encodings popularity (www): https://en.wikipedia.org/wiki/Popularity_of_text_encodings
pros:
cons:
pros > cons. I think it needs to be implemented. At least one-byte code pages. |
Affected win32 console api functions:
|
The text was updated successfully, but these errors were encountered: