当前位置:网站首页>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 .
边栏推荐
- awk从入门到入土(6)正则匹配
- A subclass must use the super keyword to call the methods of its parent class
- How to send pictures to the server in the form of file stream through the upload control of antd
- L1 regularization and L2 regularization
- Private collection project practice sharing [Yugong series] February 2022 U3D full stack class 007 - production and setting skybox resources
- Codeforces Round #803 (Div. 2)(A-D)
- Snipaste convenient screenshot software, which can be copied on the screen
- Three paradigms of database design
- Leetcode topic [array] -136- numbers that appear only once
- C语言-入门-基础-语法-[运算符,类型转换](六)
猜你喜欢
Manjaro install wechat
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
ctfshow web255 web 256 web257
DM database password policy and login restriction settings
Live in a dream, only do things you don't say
Educational Codeforces Round 119 (Rated for Div. 2)
es6总结
go-zero微服务实战系列(九、极致优化秒杀性能)
Redis sentinel mechanism
How college students choose suitable computers
随机推荐
Getting started with microservices: gateway gateway
Awk from entry to soil (5) simple condition matching
广和通高性能4G/5G无线模组解决方案全面推动高效、低碳智能电网
Manjaro install wechat
转:优秀的管理者,关注的不是错误,而是优势
ctfshow web255 web 256 web257
awk从入门到入土(11)awk getline函数详解
[error record] no matching function for call to 'cacheflush' cacheflush();)
What if the wireless network connection of the laptop is unavailable
ArcGIS application (XXII) ArcMap loading lidar Las format data
Question 49: how to quickly determine the impact of IO latency on MySQL performance
20220701 Barbalat引理证明
Awk from digging into the ground to getting started (10) awk built-in functions
Awk from entry to penetration (6) regular matching
Leetcode topic [array] - 121 - the best time to buy and sell stocks
Awk from entry to earth (8) array
DM8 tablespace backup and recovery
What exactly is DAAS data as a service? Don't be misled by other DAAS concepts
Codeforces Global Round 21(A-E)
Awk from getting started to digging in (11) detailed explanation of awk getline function