S. Lott on Nostr: csv files with Unicode can be tricky. Sometimes, the csv file encoding is wrong. You ...
csv files with Unicode can be tricky. Sometimes, the csv file encoding is wrong. You can open the file with an explicit encoding like “cp1252” or “utf-8”. Other times, you’ll need to fuss around with str.decode() (or eval()) to get bytes and the bytes.encode() to build the str you want. Or. Worse. You have to process the csv in bytes.
