Cause: Because the default character encoding for this open source project is UTF-8, the character encoding of my console is automatically changed to UTF-8, and the default format for the input stream of the keyboard is GBK format. This causes the odd garbled error (the explanation of this problem can be found in the search engine) in the process of GBK turning UTF-8.
Workaround:
1. Console encoding, Common (right), run configurations-R, right-click Code area
If this error occurs, the encoding format should be UTF-8, select Other, at this point there may be no GBK option, if not, then perform the operation after.
2. Change the text file encoding for the item, resource, properties, right-click, first adjust the text file encoding back to GBK, and then go back to reset console encoding encoding to GBK.
About Java console input and output garbled problem