Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-766

Java encoding issue in output window

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            NDelt NDelt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: