Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Batch and Powershell do not work properly if non-ASCII text (e.g. "аạąäàáą") is used in the folder name or prompt name.
For Batch case, there is a codepage issue under the problem and cpython's venv has the solution already.
And Powershell assumes Windows 1252 encoding when reading files without BOM. So I added Bom using utf-8-sig encoding.
Batch error screenshot (see broken prompt name after activate)
![Batch error screenshot](https://private-user-images.githubusercontent.com/60059706/302363637-b4397a4a-15f2-4992-b302-de1cac68e07d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzODU5ODcsIm5iZiI6MTcyNDM4NTY4NywicGF0aCI6Ii82MDA1OTcwNi8zMDIzNjM2MzctYjQzOTdhNGEtMTVmMi00OTkyLWIzMDItZGUxY2FjNjhlMDdkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDA0MDEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM1MzA3YWJmOTRjMjUzY2UyOWI1Zjg2MzNlZmJmMjZmMmMyYTAyYzRkNjhmNDkzYWU1MGU2MWQ3YTA2NzNkNjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gLJIEm3tshGRjc2pIrLtOOQKAUJdxBVT0vh004Yrp1s)
Powershell error screenshot
![Powershell error screenshot](https://private-user-images.githubusercontent.com/60059706/302364102-d834c835-aad6-4ca4-9656-5c266c321b9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQzODU5ODcsIm5iZiI6MTcyNDM4NTY4NywicGF0aCI6Ii82MDA1OTcwNi8zMDIzNjQxMDItZDgzNGM4MzUtYWFkNi00Y2E0LTk2NTYtNWMyNjZjMzIxYjljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDA0MDEyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNmYzFmMDUxNjYyMzM3MzgyZjRmODM2YzIwYzYxNDEwYmJhOTk1YzgwNDk3ZDIwZmRmMzBiZjkwZDExYTZlMWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Wzx_Rrc9WO6X8QP3jr9fDCJ85khTLcX0mEbKTuA3rcM)