1. 选择txt文档
  2. 右击选择Properties或者Alt+Enter快捷键
  3. 找到Text file encoding选项,选择Other
  4. 将Other后的内容改为GBK,若下拉列表中没有此选择,可以直接输入
    Eclipse中打开txt文档中文乱码
  5. 右下角Apply,然后Apply and Close;或者直接Apply and CloseEclipse中打开txt文档中文乱码
  6. 打开txt文档,中文显示正常。

祝君好运。

相关文章: