Message308934
The CMD shell decodes batch scripts using the attached console's output codepage, which defaults to OEM. OTOH, venv writes the replacement values for the template activate.bat as UTF-8 (codepage 65001), which is correct and should not be downgraded to OEM.
Instead, the batch script could temporarily switch the console to codepage 65001. Then restore the previous codepage at the end. For example:
@echo off
for /f "tokens=2 delims=:" %%a in ('"%SystemRoot%\System32\chcp.com"') do (
set "CODEPAGE=%%a"
)
"%SystemRoot%\System32\chcp.com" 65001 > nul
[rest of script]
"%SystemRoot%\System32\chcp.com" %CODEPAGE% > nul
set "CODEPAGE="
:END |
|
Date |
User |
Action |
Args |
2017-12-22 13:24:50 | eryksun | set | recipients:
+ eryksun, paul.moore, vstinner, tim.golden, ezio.melotti, zach.ware, steve.dower, Jac0 |
2017-12-22 13:24:49 | eryksun | set | messageid: <1513949089.95.0.213398074469.issue32409@psf.upfronthosting.co.za> |
2017-12-22 13:24:49 | eryksun | link | issue32409 messages |
2017-12-22 13:24:49 | eryksun | create | |
|