Home > Back-end >  Vscode output always garbled, bosses can be solved
Vscode output always garbled, bosses can be solved

Time:09-16

Public class ScanXan
{
Public static void main (String [] args) throws IOException
{
Scanner s=null;
Try
{
S=new Scanner (new BufferedReader (new FileReader (" E: \ \ 1. TXT ")));
//use the string JDK as delimiters
SDK s.u seDelimiter (" ");
While (Sheldon horowitz asNext ())
{
System. The out. Println (s.n ext ());
}
} the finally {
If (s!=null)
{
S.c lose ();
}
}
}
}

CodePudding user response:

You can set the encoding format

CodePudding user response:

reference 1st floor on the pit's reply:
you can set the encoding format

Hello, is say what the bottom right hand corner that UF, tried, or the sample

CodePudding user response:

Check the use CHCP command, and then find out error page CHCP 65001 command execution

CodePudding user response:

It is ok to change the command set encoding, baidu don't understand

CodePudding user response:

Agree with 4th floor

CodePudding user response:

https://blog.csdn.net/a19990412/article/details/90270814

Tutorial here
  • Related