Reading and Writing special characters in Python
Advertisements Python ver. 3.11.5 on Windows 10 I have a directory filled with .gz text archives. To scan these archives, I use the following python code: with gzip.open(logDir+"\\"+fileName, mode="rb") as archive: for filename in archive: print(filename.decode().strip()) All used to work, however, the new system adds lines similar to this: :§f Press [§bJ§f] Python gives me… Read More Reading and Writing special characters in Python