当前位置:网站首页>IDEA文件UTF-8格式控制台输出中文乱码
IDEA文件UTF-8格式控制台输出中文乱码
2022-08-09 07:33:00 【心寒丶】
方法一:修改文件编码格式
修改文件编码格式,可以直接在最底部修改或者设置里边 File>Settings>Editor > File Encodings
修改完虽然解决了控制台乱码,但是修改了文件的编码格式,如果提交代码,其他同事那里可能会乱码。
方法二:修改启动项,增加编码格式:
启动项加入 -Dfile.encoding=UTF-8
方法三:修改idea启动项配置文件
修改 安装目录的bin文件夹下 vmoptions结尾的文件,一般如下图两个,在最后加上
-Dfile.encoding=UTF-8,然后重启idea
方法四:修改diea用户环境配置
Help>Edit Custom vM Options... 在idea64.exe.vmoptions文件中加入:
-Dfile.encoding=UTF-8
-Dconsole.encoding=UTF-8
边栏推荐
- Learning Notes---Machine Learning
- 错误:为 repo ‘oracle_linux_repo‘ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.
- Lottie系列一:介绍与使用
- 【烂笔头】各厂商手机手动抓log
- pip安装更换镜像
- c语言位段
- jmeter concurrency and some limitations of the press
- failed (13: Permission denied) while connecting to upstream
- TCP段重组PDU
- Lottie系列四:使用建议
猜你喜欢
随机推荐
信息反馈平台的设计与实现(一、项目设计)
差分约束-图论
unity第一课
高项 04 项目整体管理
线程API
Tkinter可以选择的颜色
数据库索引原理
Learning Notes---Machine Learning
C语言:打印菱形
DIMP:Learning Discriminative Model Prediction for Tracking 学习判别模型预测的跟踪
【转载】Deep Learning(深度学习)学习笔记整理
Invoker 2019CCPC Qinhuangdao Station I Question Simple DP
es6 基础知识详解 变量 字符串 解构赋值 函数 对象 从入门到精通
CoCube传感器MPU6050笔记
sklearn数据预处理
洛谷P1110 报表统计 multiset stl好题
Important news丨.NET Core 3.1 will end support on December 13 this year
jmeter并发数量以及压力机的一些限制
The maximum validity period of an SSL certificate is 13 months. Is it necessary to apply for multiple years at a time?
SSM整合开发案例