Windows DIR command returns characters which can't be decoded using UTF-8. It is due to the fact that DOS uses legacy encoding (Cp437 for US implementations). Since it varies a lot from one language to another and it is specific to one platform, we resolve this issue by replacing those unknown characters with �. This way, command outputs are still returned.
Windows DIR command returns characters which can't be decoded using UTF-8. It is due to the fact that DOS uses legacy encoding (Cp437 for US implementations). Since it varies a lot from one language to another and it is specific to one platform, we resolve this issue by replacing those unknown characters with �. This way, command outputs are still returned.