DEV Community

Discussion on: Please stop hack "chcp 65001"

Collapse
 
mintty profile image
mintty

The purpose of the chcp utility is that you can use it if you need it, provided you know what you're doing. It is not a hack.

Collapse
 
ferdnyc profile image
Frank Dana

It's there so the enduser can use it if they need it. I would argue that, if software is swapping the code page out from underneath the user's feet — especially if it isn't properly restored after (and from what Yasuhiro says, it basically CAN'T be properly restored in at least some cases), then using it that way is most definitely a hack.