The question has been raised a million times, I know. And there are a thousand and one answers online. But I could solve it. The bottom line. When I collect an Ant project and type something into the console (in Cyrillic),
System.out.println("привет"); works ok. However, when trying to create a maven project and collect them, a bundle of squares / garbage will pop up:
""C:\Apache\maven\bin\mvn.bat"" ७ 譥 , ᯮ 塞 ணࠬ 䠩 .
I tried a lot: -Dfile.encoding=UTF8 in windows variables I wrote it, I added it to the NetBeans parameter itself at startup.
In this case, Maven refuses to start me, apparently the system swears at the absence of the file (I guessed it), but how can I make a normal Cyrillic display?
chcpwithin this session returns 65001 or 866. - etkimavenbuild happen? I never worked at netbins. There you can stick any analogue; chcp; chcpat the end of the command? - etki("привет");what encoding do you write in? - Barmaley