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 encodingCodePudding 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-8CodePudding 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: