当前位置:网站首页>Clion console output Chinese garbled code
Clion console output Chinese garbled code
2022-07-04 08:49:00 【Hu Anmin】
For programmers engaged in software development ,JetBrains The whole family bucket is convenient to use . Whether it's Android Development uses AndroidStudio, Or is it Web Developed WebStorm , Until then C Linguistic CLion. The same interface style , Familiar shortcut keys , Everything is so smooth to use .
In order to learn C Language and data structure , I chose CLion As IDE. One day when I output Chinese on the console , The output is garbled . The solution is hereby recorded .
Set encoding
- open File —> Settings —> Editor
- choice File Encodings
- Set encoding to UTF-8

After setting up , Run the project and find that it is still garbled . The reason is that you need to change the code of the console to GBK.
Only this and nothing more , Be accomplished . But the above is based on Windows system , Let's talk about Xiayu Windows Run in Ubuntu Code written in , The resulting garbled code problem .



边栏推荐
- Developers really review CSDN question and answer function, and there are many improvements~
- [error record] no matching function for call to 'cacheflush' cacheflush();)
- CLion-控制台输出中文乱码
- C语言-入门-基础-语法-[变量,常亮,作用域](五)
- Awk from entry to earth (8) array
- Azure ad domain service (II) configure azure file share disk sharing for machines in the domain service
- SQL statement view SQL Server 2005 version number
- C语言-入门-基础-语法-[标识符,关键字,分号,空格,注释,输入和输出](三)
- Flutter 集成 amap_flutter_location
- High order phase difference such as smear caused by myopic surgery
猜你喜欢

根据数字显示中文汉字

微服務入門:Gateway網關

How can we make a monthly income of more than 10000? We media people with low income come and have a look

How to solve the problem of computer jam and slow down

Developers really review CSDN question and answer function, and there are many improvements~

Comparison between sentinel and hystrix

保姆级JDEC增删改查练习

What if I forget the router password

Codeforces Global Round 21(A-E)

es6总结
随机推荐
Awk from entry to earth (7) conditional statements
awk从入土到入门(10)awk内置函数
Codeforces Global Round 21(A-E)
How to send pictures to the server in the form of file stream through the upload control of antd
Awk from entry to earth (14) awk output redirection
Live in a dream, only do things you don't say
awk从入门到入土(6)正则匹配
ES6 summary
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
Leetcode topic [array] - 121 - the best time to buy and sell stocks
Use Alibaba cloud NPM image acceleration
Sequence model
awk从入门到入土(15)awk执行外部命令
DM8 uses different databases to archive and recover after multiple failures
Flutter integrated amap_ flutter_ location
Webapi interview question summary 01
std::is_ union,std::is_ class,std::integral_ constant
Three paradigms of database design
[untitled] 2022 polymerization process analysis and polymerization process simulation examination
awk从入门到入土(5)简单条件匹配