Author terry.reedy
Recipients David.Sankel, akira, amaury.forgeotdarc, christian.heimes, christoph, davidsarah, ezio.melotti, giampaolo.rodola, hippietrail, lemburg, mark, mhammond, pitrou, santoso.wijaya, smerlin, sorin, terry.reedy, tim.golden, tzot, v+python, vstinner
Date 2012-07-03.05:56:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341294979.36.0.515785353401.issue1602@psf.upfronthosting.co.za>
In-reply-to
Content
3.3b0, Win7, 64 bit. Original test script stops at
File "C:\Programs\Python33\lib\encodings\cp437.py", line 19, in encode
  return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\x80' in position 6:

I am slightly puzzled because cp437 is an extended ascii codepage and there *is* a character for 0x80
https://en.wikipedia.org/wiki/Code_page_437

If I add .encode('latin1'), it does not print the pentagon for 0x7e, but does print \x7e to \xff.

Someone wrote elsewhere that 3.3 could use cp65001. True?
History
Date User Action Args
2012-07-03 05:56:19terry.reedysetrecipients: + terry.reedy, lemburg, mhammond, tzot, amaury.forgeotdarc, pitrou, vstinner, giampaolo.rodola, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, sorin, davidsarah, santoso.wijaya, akira, David.Sankel, smerlin
2012-07-03 05:56:19terry.reedysetmessageid: <1341294979.36.0.515785353401.issue1602@psf.upfronthosting.co.za>
2012-07-03 05:56:18terry.reedylinkissue1602 messages
2012-07-03 05:56:18terry.reedycreate