| |

VerySource

 Forgot password?
 Register
Search
View: 672|Reply: 1

How to solve the garbled problem?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-2-21 17:00:01
| Show all posts |Read mode
When I compile the java program in the command prompt, what is the garbled character and how to solve it?
as follows:  
E:\WORKSP ~ 1> javac Test.java
Test.java:1: ╨Φ╥&not; <&# 9618; ΩΣ╢╖√>
package.com.newsclan.udq;
       ^
1 ┤φ╬≤
Reply

Use magic Report

0

Threads

63

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-5-2 02:00:01
| Show all posts
What is the format of your java file. For example, when you save it as UTF-8, then you use

javac -encoding UTF-8 Test.java
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list