当前位置:网站首页>What about idea Chinese garbled code
What about idea Chinese garbled code
2022-07-27 07:41:00 【Kyoto Xiaobai】
If you have tried many methods of articles , If it still hasn't been solved , I recommend my method to you , But my method is limited to IDEA Configuration problem , I haven't tried maven and Tomcat.
Replace jdk edition
because jdk18 Version adopts GBK code , When we write code, we use UTF-8 code , It is likely to make the console disordered , So if there is 18 Version of friends strongly recommend changing to 17 Version of , This operation is not troublesome , First, click the official website ORACLE

Click on the Java 17, Go to the following page

Click the first compressed package to download and install , Which disk is installed in which , Remember where you store it .
open settings Set up , Path as follows :File——> Settings——>Build, Execution, Deployment——> Build Tools ——> Maven ——>Runner
By this time you have opened Runner page , It should look like this :

Click... On the right JRE:Use Project JDK, hold 17 Version of jdk Path added in .

Return to the compilation area , Click on Edit Configurations

take Build and Run Of jdk Add your download path to the path , Now it's done , Reopen IDEA, You should be able to output Chinese characters normally . If it's still garbled , Then you can see my next operation ( It is the same as other articles )
The same operation as other articles

Follow the path in the picture ,File | Settings | Editor | File Encodings, All three places are UTF-8.

Follow this path , Add code -Dfile.encoding=UTF-8


find encoding.xml, Make sure it's all UTF-8 Coding form , If there is something wrong, delete it .

find idea64.exe.vmoptions file , Add code on the last line :
-Dfile.encoding=UTF-8
According to my experience of searching for two hours , These operations are repeated , The final solution to my problem is to replace jdk edition , Write down this sharing, hoping to help you !
边栏推荐
- Mysql: increase the maximum number of connections
- Solidity智能合约开发 — 3.3-solidity语法控制结构
- Synchronized lock
- 小程序支付管理-新版支付对接流程
- JS regular expression implementation adds a comma to every three digits
- Prior Attention Enhanced Convolutional Neural Network Based Automatic Segmentation of Organs at Risk
- STM32_找到导致进入HardFault_Handler的函数
- 杂谈:最近好多朋友谈出国……
- Using loops to process data in tables in kettle
- Top ten interview questions for software testing (with answers and analysis)
猜你喜欢

Properties类和properties配置文件的理解学习

什么是真正的HTAP?(一)背景篇

Panabit SNMP configuration

Okaleido生态核心权益OKA,尽在聚变Mining模式

Gossip: Recently, many friends talk about going abroad

VLAN trunk experiment

Understanding and learning of node flow and processing flow in io

Am I delayed by the code... Unfortunately, I became a programmer

闭散列和开散列解决哈希冲突
为啥国内大厂都把云计算当成香饽饽,这个万亿市场你真的了解吗
随机推荐
Apifox安装及使用
Bingbing's learning notes: classes and objects (middle)
ARP广播实践案例
Properties类和properties配置文件的理解学习
Mysql: increase the maximum number of connections
Essay: college entrance examination
[stonedb class] introductory lesson 1: popular science of database knowledge
shell awk相关练习
shell循环练习
小程序消息推送配置 Token校验失败,请检查确认
flink1.14 sql基础语法(一) flink sql表查询详解
Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
The token verification of applet message push configuration failed. Please check and confirm
Record a pit dug by yourself~
为啥国内大厂都把云计算当成香饽饽,这个万亿市场你真的了解吗
C common function integration-3
Cadence (XI) silk screen printing adjustment and subsequent matters
Turn off the auto start function of Oracle service in centos7
JS make a traffic light
The error of QT connecting SQLite database and its modification