Skip to content
邃境
Search
K
Main Navigation
目录
Appearance
On this page
Table of Contents for current page
2023年4月[XX篇XXXX字]
2023年3月[XX篇XXXX字]
CPP_Windows编译乱码
Documentation
标签:
CPP/其他
Windows 的终端默认中文编码为 GBK,现在默认的编码都是 utf-8,导致了乱码
G++
bash
g++
-finput-charset=utf-8
-fexec-charset=GBK
main.cpp