Answer the question
In order to leave comments, you need to log in
Is it bad to change encoding in NetBeans from UTF-8 to Windows-1251?
Comrades, a possibly stupid question arose, but I could not google well and find a clear answer.
I'm learning Java, at the same time I'm doing all sorts of mini-programs for practice and interest for the sake of it. There was a need to write a phrase in Russian to the console, and then display it.
BufferedReader reado = new BufferedReader(new InputStreamReader(System.in));
String s = reado.readLine();
System.out.println(s);
Answer the question
In order to leave comments, you need to log in
UTF-8 is any languages
CP1251 - only Russian and Latin without diacritics.
You already have a problem - CP1251 is a Windows standard.
Linux can easily use output in UTF-8.
After the change to CP1251, it will no longer be displayed under Linux.
1. General applicability
2. Cross-platform
3. Multilanguage
4. Forgot what one word to call that different components and apps interact via API?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question