Eclipse console Chinese output garbled solution

The garbled problem is as follows

insert image description here

The problem comes from the fact that the encoding format does not correspond, which leads to compilation errors and garbled characters.

Solution:

          1.点击运行

insert image description here

2. Click Run Configuration

insert image description here

3. Click Public

insert image description here

4. Click Other

insert image description here

5. Manually enter gbk

insert image description here

problem solved

insert image description here

Guess you like

Origin blog.csdn.net/weixin_58276266/article/details/131633168