This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: UnicodeWriter: "utf-8" hardcoded instead of self.encoding
Type: Stage:
Components: Documentation Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, rodelrod
Priority: normal Keywords:

Created on 2006-03-01 09:04 by rodelrod, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg27635 - (view) Author: Rodrigo Daunoravicius (rodelrod) Date: 2006-03-01 09:04
In the Python Library Reference, 12.20.5 Examples.
In the UnicodeReader/UnicodeWriter example.

class UnicodeWriter:
|    def writerow(self, row):
|    |    self.writer.writerow([s.encode("utf-8") for s
in row])

should be:

class UnicodeWriter:
|    def writerow(self, row):
|    |    self.writer.writerow([s.encode(self.encoding)
for s in row])
msg27636 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-07 13:47
Logged In: YES 

Thank you, fixed in rev. 42887.
Date User Action Args
2022-04-11 14:56:15adminsetgithub: 42958
2006-03-01 09:04:35rodelrodcreate