Java Execution Error

Asked 2 years ago, Updated 2 years ago, 99 views

I am a student studying Java. Create a source code and post it to the intellectual because there was a problem during execution.

The first is the picture when the source file was executed through the java command.

The second one is a picture that was compiled with a command called javac and converted into byte code and executed.

It's like that even after doing 65001 with chcp command at the terminal. Please answer what the problem is.

java compile

2022-09-20 22:29

1 Answers

There are many reasons for the encoding problem, so it's hard to guess ㅜ<

When IDE saves the code, how do you save the encoding? How terminal represents encoding

If you can't, I recommend you to try two and write the printout notice in English.

To test it, go to another computer (development environment of friends or colleagues) with good Hangul and turn the source code the same.


2022-09-20 22:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.