[collect_env] Acquire windows encoding using OEMCP (#49020)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/49010.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49020
Reviewed By: zhangguanheng66
Differential Revision: D25398064
Pulled By: janeyx99
fbshipit-source-id: c7fd1e7d1f3dd82613d7f2031439503188b144fd