Skip to content

Commit

Permalink
2016-12-10增加Mac系统下Tomcat控制台乱码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
judasn committed Dec 10, 2016
1 parent 879873f commit ae99913
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- [7.首次运行(新用户必看)](first-run-wizard.md)
- [8.安装目录讲解、IDE 设置云同步(新用户必看)](installation-directory-introduce.md)
- [9.界面讲解(新用户必看)](interface-introduce.md)
- [10.主题字体和文件编码修改(新用户必看)](theme-settings.md)
- [10.主题、字体、编辑区主题、文件编码修改、乱码问题(新用户必看)](theme-settings.md)
- [11.各类文件类型图标讲解(新用户必看)](file-symbols-introduce.md)
- [12.索引的讲解(新用户必看)](IntelliJ-IDEA-cache.md)
- [13.编译方式讲解(新用户必看)](make-introduce.md)
Expand Down
2 changes: 1 addition & 1 deletion TOC.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [7.首次运行(新用户必看)](first-run-wizard.md)
- [8.安装目录讲解、IDE 设置云同步(新用户必看)](installation-directory-introduce.md)
- [9.界面讲解(新用户必看)](interface-introduce.md)
- [10.主题字体和文件编码修改(新用户必看)](theme-settings.md)
- [10.主题、字体、编辑区主题、文件编码修改、乱码问题(新用户必看)](theme-settings.md)
- [11.各类文件类型图标讲解(新用户必看)](file-symbols-introduce.md)
- [12.索引的讲解(新用户必看)](IntelliJ-IDEA-cache.md)
- [13.编译方式讲解(新用户必看)](make-introduce.md)
Expand Down
Binary file added images/x-e-encoding-setting-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion theme-settings.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IntelliJ IDEA 主题、字体、编辑区主题、文件编码修改
# IntelliJ IDEA 主题、字体、编辑区主题、文件编码修改、乱码问题

## 主题修改

Expand Down Expand Up @@ -91,6 +91,12 @@
>> * 除了通过去除 BOM 还有设置 IntelliJ IDEA 的编译器为 `Eclipse`,但是一般不建议这样做。
>> * 如果上述问题都无法解决,而且你也确认 IntelliJ IDEA 各个配置编码的地方都是 `UTF-8`,报错文件编码也是是 `UTF-8 无 BOM` 的话,那还有一种可能也会出现这种情况:项目配置文件有问题。项目编码的配置文件在:`/项目目录/.idea/encodings.xml`。如果你会修改此文件可以进行修改,如果不会,那就删除掉 `.idea` 整个目录,重启 IntelliJ IDEA 重新配置这个项目即可。
## Tomcat 控制台输出乱码

![Tomcat 控制台输出乱码](images/x-e-encoding-setting-1.jpg)

- 如果你的 Tomcat 控制台输出乱码,并且你已经保证了本文上面的控制台字体设置你设置的字体包含中文,那你还可以尝试下在 Tomcat 的 VM 参数上加上:`-Dfile.encoding=UTF-8`
- 如果你是 Mac 系统,很有可能是需要的。

## 编程字体推荐

Expand Down

0 comments on commit ae99913

Please sign in to comment.