Python Forum
Writing chr(128) to text file returns errors.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing chr(128) to text file returns errors.
#5
(Aug-07-2018, 10:33 AM)Qwert_Yuiop Wrote: Why are you not getting error in the first snippet?

Well I went ahead and tried both code snippets again, this time on a windows machine and once again they both worked. Inherently, this doesn't surprise me because there is nothing wrong with the code itself. The error you got from attempting to run the first bit of code suggests to me that your working with an older version of Python. Are you by chance working with Python 2.x?
Reply


Messages In This Thread
RE: Writing chr(128) to text file returns errors. - by Vysero - Aug-07-2018, 03:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Errors during run .exe file generated with Pyinstaller BushyAxis793 4 1,766 Mar-25-2025, 05:57 PM
Last Post: BushyAxis793
  Problems writing a large text file in python Vilius 4 1,147 Dec-21-2024, 09:20 AM
Last Post: Pedroski55
  writing list to csv file problem jacksfrustration 5 2,661 Jul-04-2024, 08:15 PM
Last Post: deanhystad
  How returns behave in a function with multiple returns? khasbay 1 887 May-19-2024, 08:48 AM
Last Post: deanhystad
  Trying to access excel file on our sharepoint server but getting errors cubangt 0 1,555 Feb-16-2023, 08:11 PM
Last Post: cubangt
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 2,124 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  Writing string to file results in one character per line RB76SFJPsJJDu3bMnwYM 4 4,003 Sep-27-2022, 01:38 PM
Last Post: buran
  Writing into 2 text files from the same function paul18fr 4 2,795 Jul-28-2022, 04:34 AM
Last Post: ndc85430
  Writing to json file ebolisa 1 1,781 Jul-17-2022, 04:51 PM
Last Post: deanhystad
  Modify values in XML file by data from text file (without parsing) Paqqno 2 3,299 Apr-13-2022, 06:02 AM
Last Post: Paqqno

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020