Skip to content
On this page

CPP_Windows编译乱码


标签:CPP/其他  
  • Windows 的终端默认中文编码为 GBK,现在默认的编码都是 utf-8,导致了乱码

G++

bash
g++ -finput-charset=utf-8 -fexec-charset=GBK main.cpp

Last updated: