Solution to Chinese garbled characters appearing in the Java graphical interface (GUI) of idea (version 2022.1.3)

When I was learning Java graphics programming at Station B, I encountered the Chinese garbled problem as shown below (very distressing)

PS: Dark Horse Programmer’s class is really interesting hahaha

Then I started looking for information on CSDN and found that it seemed to be different from other people’s versions. I couldn’t find the place you talked about (as shown below), so I clicked on the version that was different (555~)

I can only try it out by myself. The steps are as follows:

1. First click on the wrench icon hhh as shown in the picture

2.The following interface will pop up, click Modify options

3. Click Add VM options again. I have already adjusted it here, so there is a check mark in front of it.

4. Another box will pop up as shown in the picture. The background of the box will be VM options. Please note that the second time I adjust it, the pop-up position is a little different (cold sweat)

5. Finally insert the code, click Apply, and you're done

-Dfile.encoding=gbk

This is my first time writing a blog and I’m a little nervous. There may be many things I haven’t noticed. I hope everyone can be tolerant. It would be great if I can help everyone!

Guess you like

Origin blog.csdn.net/m0_67227361/article/details/128387157