Vladimir Machat created NETBEANS-6115:
-----------------------------------------

             Summary: UTF-8 input is broken in Maven project
                 Key: NETBEANS-6115
                 URL: https://issues.apache.org/jira/browse/NETBEANS-6115
             Project: NetBeans
          Issue Type: Bug
         Environment: Linux Manjaro

Netbeans 12.5 (but the same problem is in earlier versions too)

Maven 3.8.2

Java - tried with 8,14,17 

 
            Reporter: Vladimir Machat


Trying to get user input containing 'special characters' like ščřžýáíé doesn't 
work in Maven project:

{{Scanner sc = new Scanner(System.in, "UTF-8");}}
{{ System.out.println("Enter text: ");}}
{{ String text = sc.nextLine();}}
{{ System.out.println("You have entered: " + text);}}

 

In Netbeans this code will fail printing what you entered if you enter 
something like 'český, řeka etc...' but works ok with any input not containing 
these characters

Same code works in an Ant project without any problems.

It also works on command line by copying and pasting the command from Netbeans 
output window (and replacing the double quotes with single quotes). 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to