idea运行全是乱码
时间: 2023-10-06 20:13:57 浏览: 70
答案: 当在IDEA中运行项目时遇到乱码问题,可以通过以下步骤来解决:首先,确保IDEA内部的文件编码设置正确。点击左上角的File并选择Settings,在Editor > File Encodings中将Global Encoding、Project Encoding、Default Encoding for properties files、Encoding这四项都设置成UTF-8,并点击OK或者Apply进行保存。其次,可以在IDEA的VMoptions文件中添加代码来修改编码设置。打开idea安装地址\bin中的idea.exe.vmoptions和idea64.exe.vmoptions文件,在文件的最后添加-Dfile.encoding=UTF-8,并保存文件。这样就可以将IDEA的编码设置为UTF-8,解决项目运行中的乱码问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [IDEA乱码解决](https://blog.csdn.net/andeluomoda/article/details/126127091)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [三种方法解决 IDEA乱码问题](https://blog.csdn.net/m0_72402903/article/details/126134614)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文