I'm working on (French) PC with Python 3.4
for line in os.popen('dir'):
print(line.rstrip())
I get the first line as expected
Le volume dans le lecteur C s'appelle SYSTEME
but for the second (with é)
Le numéro de série du volume est C250-47DD
I get the error message :
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u201a' in position 7: character maps to
<undefined>
What can I do ? In advance thanks for your help