Great, it works! Thanks
I hope it will make it into 12.6...
On 31/10/2021 03:22, Michael Bien wrote:
the hint that it was a maven specific issue helped me to find it
relatively quickly - thanks :)
https://github.com/apache/netbeans/pull/3289
i don't know if it will make it into NB 12.6, thats in the hand of the
reviewers.
best regards,
michael
On 30.10.21 12:19, Vladimir Machat wrote:
Hi Michael,
yes I have tried that, but nothing changed :(
On 30/10/2021 11:10, Michael Bien wrote:
Hi Vladimir,
thats interesting. Since you are on linux, UTF-8 should be the
default as far as I know.
have you tried to add -J-Dfile.encoding=UTF-8 to your
etc/netbeans.conf (netbeans_default_options property)?
regards,
michael
On 30.10.21 11:55, Vladimir Machat wrote:
Hi All,
When I create a Java with Maven Project and try to run simple code
like this:
Scanner sc = new Scanner(System.in, "UTF-8");
System.out.println("Enter text: ");
String text = sc.nextLine();
System.out.println("You have entered: " + text);
If I enter anything containing letters like ščřžýáíé (from the
czech language), the output in the output window would be broken,
the special letters replaced with characters like �.
The exactly same code works perfectly in the same Netbeans
installation, just using the project Java with Ant.
Also if I run the project in terminal outside Netbeans, using the
command from the output window, it works correctly.
I tried this on Manjaro Linux and Windows 10, with Netbeans 12.5
12.4 12.3, with the same result.
Any ideas how to solve this problem?
Thanks
PS: I created an issue in Netbeans Jira about it a while ago:
https://issues.apache.org/jira/browse/NETBEANS-6115