当前位置:网站首页>2022版IDEA图形界面GUI乱码解决方法超详细简单版
2022版IDEA图形界面GUI乱码解决方法超详细简单版
2022-06-10 16:47:00 【Anya-.-】
这几天在和同学一起做一个课程设计,遇到了不少问题,本博客用来记录一下解决方法,如果有同学遇到一样的问题,希望对你有帮助~
在idea简单编写了一个图形界面,但出现了中文变成了小方块的问题,如下图:

然后呢,去网上搜刮了许多资料文章,乱操作了一番,小方块变成一些些奇奇怪怪的字,如下图:

没关系,不要急,问题即将解决:
检查在
settings->Editor->File Encodings中是否设置了utf-8格式
- 第一步:找到
Settings
- 第二步:
Editor->File Encodings,设置utf-8格式,最后点击Apply,在OK退出。(ps: 一定要点击Apply再OK)
- 如果到了这一步问题还没有解决的话,请往下看:
找到Edit Configurations,再找到Add VM options选项,添加一句代码:-Dfile.encoding=GBK,点击应用,即可。

Yep,魔法来了,重新运行一下程序,中文显示成功!
暂时解决了这个小麻烦,课程设计还有很多问题,会继续和小组小伙伴一起完成哒,加油加油!!
边栏推荐
- Nat. Rev. Drug Discov. | AI在小分子药物发现中的应用:一个即将到来的浪潮?
- com.netflix.client.ClientException: Load balancer does not have available server for client: userser
- Solve the problem that idea is stuck in opening a project
- When V-IF and V-for need to be used at the same time
- 5年后,你将如何融入20万亿美元的「项目经济」
- C#_ Serial port communication project
- 基于PHP+Web+Mysql的在线问卷调查系统
- 用代码设计药物:我们到了吗?
- Open source project PM how to design official website
- Numpy numpy中np.set_printoptions()的用法——控制输出方式
猜你喜欢

See how advanced technology changes human life

丢失的遗传力--Missing heritability

B站不想成为“良心版爱优腾”

Online communication skill network: a sparse model for solving multi task and multi-modal problems (Qingyuan talk, issue 19, tangduyu)

2022年T电梯修理考试题模拟考试题库及在线模拟考试

The children in the deep mountains are seeing the stars farther away

2022年茶艺师(中级)操作证考试题库及模拟考试
Example code of PHP for uploading multiple pictures

华为matepad能成为你的笔记本电脑副屏?

2022年焊工(初级)试题模拟考试平台操作
随机推荐
期货账户资金安全吗?
Mysql database implementation setting field length
Knowledge-based BERT: 像计算化学家一样提取分子特征的方法
丢失的遗传力--Missing heritability
Numpy numpy中np.set_printoptions()的用法——控制输出方式
关于透视投影变换及相关应用的详细推导
Make good use of the industrial chain to attract investment, create industrial cluster effect and realize the coordinated development of industries
Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data
C#_ Serial port communication project
5年后,你将如何融入20万亿美元的「项目经济」
几个对程序员的误解,害人不浅!
Importerror: libgl.so.1: cannot open shared object file: no such file or directory
When V-IF and V-for need to be used at the same time
创建 Visual Studio 离线安装包并安装
Example code of PHP for uploading multiple pictures
A few misunderstandings about programmers are very harmful!
AlphaFold 和 NMR 测定溶液中蛋白质结构的准确性
Fabric.js 缩放画布
Fail fast and fail safe
力扣 20. 有效的括号