Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Writing Unicode text to a text file? [duplicate]

Current License: CC BY-SA 4.0

20 events
when toggle format what by license comment
Jun 12, 2025 at 6:48 comment added Karl Knechtel The original problem was that using codecs.open produces a stream that will encode as it writes, but you also explicitly encoded before writing. In order for the Python 2 codec to work, it would implicitly attempt to decode the initially encoded data, in order to have something that it could properly encode again. N.B. this is not an answer; it's why the question is a duplicate.
Jun 12, 2025 at 6:46 history closed Karl Knechtel python Users with the python badge or a synonym can single-handedly close questions as duplicates and reopen them as needed. Duplicate of Why does ENcoding a string result in a DEcoding error (UnicodeDecodeError)?
Jun 19, 2019 at 20:00 history edited Jean-François Fabre CC BY-SA 4.0
added python 2 tag as question & answers aren't relevant for python 3
Apr 26, 2019 at 9:24 answer added ashish14 timeline score: 0
Oct 15, 2017 at 1:01 answer added david m lee timeline score: 87
May 13, 2016 at 21:29 history edited Aaron Hall CC BY-SA 3.0
edited tags
May 13, 2016 at 19:35 answer added Aaron Hall timeline score: 21
May 11, 2016 at 4:49 history edited Sнаđошƒаӽ CC BY-SA 3.0
Removed "python" from title
Jan 29, 2016 at 13:49 answer added jfs timeline score: 82
Jul 30, 2014 at 5:21 history protected Community Bot
Dec 27, 2013 at 18:36 answer added Eric Leschinski timeline score: 3
Dec 27, 2013 at 18:33 history edited Eric Leschinski CC BY-SA 3.0
added 6 characters in body
Dec 7, 2013 at 23:36 history edited Eric Leschinski CC BY-SA 3.0
deleted 208 characters in body
May 20, 2011 at 11:22 vote accept simon
May 18, 2011 at 17:24 comment added Thomas K The program you're using to open it is not interpreting the UTF-8 text correctly. It should have an option to open the file as UTF-8.
May 18, 2011 at 16:54 history edited simon CC BY-SA 3.0
added 381 characters in body; added 122 characters in body
May 18, 2011 at 16:49 answer added quasistoic timeline score: 344
May 18, 2011 at 16:45 answer added Thomas K timeline score: 1
May 18, 2011 at 16:44 answer added Thomas Wouters timeline score: 19
May 18, 2011 at 16:39 history asked simon CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /