- chcp切换cmd页码为65001
chcp 65001
Seems that the character count of the progress bar is calculated to fill in just one line, then when the next line is outputed, last line is erased so the viewer see a growing progress bar But in Chinese code pages, the characters used by the bar are full width (regular ascii characters are "half width") , which means they take up the space of 2 characters (this can be seen obviously in the first picture I posted here), and as a result the progress bar output to 2 lines, and broke itself.