Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2
-
None
-
None
-
Windows 10
Description
Scanner sc = new Scanner(System.in); System.out.print("Input Text: "); String str = sc.newLine(); System.out.println(str);
If I compile this code and input non-English words, a broken text is displayed in output window.
Encoding of the source file is UTF-8, and I gave compile option "-encoding UTF-8".
This issue doesn't occur in Cmd.