Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the methods to solve the problem of Chinese garbled code in IntelliJ IDEA console

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "what are the methods to solve the problem of Chinese garbled code in IntelliJ IDEA console", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what are the ways to solve the problem of Chinese garbled code in the IntelliJ IDEA console?"

Preface

If IntelliJ IDEA is not configured, the problem of garbled codes in the console will be very serious when running the program, which will seriously affect our access to information and the tracking of the program. I would like to summarize the following four points to solve the problem of Chinese garbled in the console. I hope it will help you all.

Note: according to the summary of my daily work experience, the order is the order in which we need to pay attention to the revision. Be sure to restart IntelliJ IDEA for the configuration to take effect after each change.

1. Modify the virtual machine output options of the current Web project Tomcat Server

The navigation bar above is "Run → Edit Configurations..." Go to the configuration page and modify the virtual machine output option VM options add-Dfile.encoding=UTF-8 for the current Web project Tomcat Server. Run the program to check the console information after restart, and if it does not work, perform the following steps.

III. Custom virtual machine options in IntelliJ IDEA

The navigation bar above is "Help → Etit Custom VM Options..." Go to the Custom Virtual Machine options page.

4. Directly modify the coding information of the IntelliJ IDEA configuration file

We open the local installation directory of IntelliJ IDEA, find the following two files, open them using notepad, and add-Dfile.encoding=UTF-8 on the last line. Run the program to check the console information after reboot, and the problem is solved!

At this point, I believe that everyone on the "IntelliJ IDEA console to solve the problem of Chinese garbled what are the methods" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report