@
alvin666 win10。我换了没用。
不少 comment 和回答提到都说不好:
"chcp 65001 is very dangerous. Unless a program was specially designed to work around defects in the Microsoft ’ s C runtime library (or uses a different CRTL), it would not work reliably."
"Note there are serious implementation bugs in Windows's code page 65001 support which will break many applications that rely on the C standard library IO methods, so this is very fragile. (Batch files also just stop working in 65001.) Unfortunately UTF-8 is a second-class citizen in Windows."
"My understanding is that calls that return a number-of-bytes (such as fread/fwrite/etc) actually return a number-of-characters. This causes a wide variety of symptoms, such as incomplete input-reading, hangs in fflush, the broken batch files and so on. Some background. The default code pages used for CJK "multibyte" locales have special handling built in to fix this, but 65001 doesn't - it is not supported."
具体意思我看不太懂