Answer the question
In order to leave comments, you need to log in
Why is the encoding not displayed correctly?
In general, there are lines in UTF-8 encoding. So, this paskuda (my program) in JTextPane in NetBeans, if you just run it, displays the encoding correctly. But if you collect and clean this creature and go to the folder where this reptile was collected and run from there, then this skatina displays kryakozyabry. JTextPane.setContentType was specifying. The encoding is exactly UTF-8. Please help me correct this error. And here are the screenshots.
Answer the question
In order to leave comments, you need to log in
Briefly, you have not specified the encoding of the input stream. Since everything is in Unicode inside, when reading a stream, you simply need to specify the encoding in which this stream lies. The same is true when recording, look at the encoding. All this is well described in the article "java Russian letters and more". Just like that, drive it into Google. If something is not clear, write in the comments.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question