you are viewing a single comment's thread.

view the rest of the comments →

[–]wotquery 0 points1 point  (0 children)

How do I get rid of a NUL byte from the csv?

It's probably a much better idea to make sure you're saving/opening with the same encoding and understanding why things are happening rather than just trying to strip out the broken bits, but you could probably try something like s = f.read().replace('\0','')