New submission from Spandan Garg <spandan.garg1...@gmail.com>:

Recently, I noticed that whenever I execute python from inside a virtual 
environment, I can't seem to write special characters into the shell. Although, 
when I exit the virtual environment, this issue no longer occurs. I've 
confirmed that the versions of python inside and outside the virtual 
environment are the same.

For example, when I paste the string 'doesn’t' (with the Unicode apostrophe) 
into the shell without virtual environment, I get the following:
>>> doesn’t     # without virtual environment

When I paste the same string into the shell with a virtual environment active 
(and the same version of python), I get the following:
>>> doesnt      # with virtual environment

The version of python I am using is python 3.7.4 (though I have reproduced this 
on python 3.6.5 as well). I am creating the virtual environments using the venv 
module. Also, I think that this problem only happens on Windows as I couldn’t 
reproduce it on Linux.

Does anyone know why this may be happening? Please let me know if I should 
provide any other details.

----------
components: Unicode
messages: 351757
nosy: ezio.melotti, glGarg, vstinner
priority: normal
severity: normal
status: open
title: Special Characters Don't Work When Using Virtual Environment
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38098>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to