当前位置:网站首页>IDEA中文棱形乱码错误解决方法--控制台中文输出棱形乱码
IDEA中文棱形乱码错误解决方法--控制台中文输出棱形乱码
2022-06-12 15:44:00 【七月是你的谎言..】
目录
使用Idea Maven创建项目,控制台输出错误,中文乱码成棱形。
控制台输出错误如下:乱码部分为中文
在编辑区、搜索区编码均正确。
错误原因
IDEA对文件的编码与解码方式不同,导致此问题的出现。默认文件编码方式为GBK,而解码方式调解成了UTF-8或者其他,网上一大堆修改成UTF-8的方法,但对棱形输出错误无效。
错误示范:
1、修改java虚机编码方式为UTF-8(在)
2、修改idea配置文件encodings.xml如下图

3、在虚机选项文件中添加默认编码方式
(help处打开Edit Custom VM options)

IDEA bin目录下记事本打开下述文件
正确解决方法
将上述错误示范处的UTF-8改成GBK就行了
边栏推荐
- Fiddler packet capturing (mobile app)
- Use of thread communication
- Escape rules and examples of go
- [jvm learning] local method stack and heap
- Microservice fault tolerance
- Notes on ARM 64 instructions
- Kinect2.0+ORBSLAM2_ with_ pointcloud_ map
- Task fruit Juicer 0611
- [OWT server] customized script 3: server construction
- Tcp/ip three handshakes and four waves (interview questions)
猜你喜欢

IGMP message (tcp/ip details volume 1/ Volume 2)

Explanation of socket principle (where, what and how to use it)

一步步创建包含自定义 Screen 的 ABAP 程序的详细步骤试读版

C语言 分割bin文件程序

为什么阿里巴巴不建议MySQL使用Text类型?

远程操控其它电脑--详细教程

Remote control of other computers -- detailed tutorial
![[jvm learning] local method stack and heap](/img/5d/2e0b758ae52cfdc0d060431df19eea.jpg)
[jvm learning] local method stack and heap
![CUDA out of memory 或 BrokenPipeError: [Errno 32] Broken pipe 或 OSError: [WinError 1455] 页面文件太小的解决办法](/img/2c/63f1c865105a74ed651bb0ef97ab60.png)
CUDA out of memory 或 BrokenPipeError: [Errno 32] Broken pipe 或 OSError: [WinError 1455] 页面文件太小的解决办法

RARP总结(TCP/IP详解卷1/2)
随机推荐
Distributed concurrent repeated submission
TS 22.011
Idea Encyclopedia (Reprinted)
广播和多播(TCP/IP详解卷1/2)
[OWT server] customized script 3: server construction
vim的安装以及常用命令
Microservice fault tolerance
Getting started with JMeter
【光源实用案例】 UV-LED固化创新,让产线变得更丝滑
Deepin20.6 RTX3080 安裝顯卡驅動510.60.02、CUDA11.6、PyTorch1.11
如何使用Grafana轻松实现OVL数据可视化
任务 水果炸汁机 0611
办公室VR黄片,骚操作!微软HoloLens之父辞职!
Solve log4j2 vulnerability and be attacked by mining and zombie process viruses
Two ways of array simulating queue
Raccourci vers le nouvel environnement du carnet de notes Jupiter
Design concept of ORM framework
redis String类型常见命令
Task fruit Juicer 0611
TS 22.011