Home > Back-end >  New Java file garbled Idea/eclipse
New Java file garbled Idea/eclipse

Time:03-03

1. All the coding format eclilpse tried, online said set encoding is tried, the new Java file all gibberish, English also gibberish,
2. Change the idea, the idea of new Java file, manually type in the code, not wrote a main method to compile times coding is unusual, text file to open the file also all gibberish,
Above, software uninstall reinstall the JDK uninstall reshipment all tried, or noise, what's going on?

The following screenshots for:
Idea automatically generated hellworld file garbled



Manually create run after, a compiler error,





Eclipse creates a Java file garbled



CodePudding user response:

Try set up a file encoding

CodePudding user response:

If you were the eclipse, click Windows - & gt; The preferences - & gt; Genneral - & gt; In the workspace, and then the lower left corner to choose other utf-8

CodePudding user response:


This is the idea of setting code

CodePudding user response:

A character encoding has been tried, still not solved,

CodePudding user response:

Problem solved, the company installed a data leakage prevention software, this software has bugs, not the editor's problems, after software uninstall,

CodePudding user response:

reference 5 floor xiaomo228588 reply:
problem is solved, the company installed a data leakage prevention software, this software has bugs, not the editor's problems, after software uninstall,

Aha!
  • Related