_csv.Error: string with NUL bytes

dustin at v.igoro.us dustin at v.igoro.us
Thu May 3 13:12:27 EDT 2007


On Thu, May 03, 2007 at 09:57:38AM -0700, fscked wrote:
> > As Larry said, this most likely means there are null bytes in the CSV file.
> >
> > Ciao,
> >         Marc 'BlackJack' Rintsch
> 
> How would I go about identifying where it is?

A hex editor might be easiest.

You could also use Python:

  print open("filewithnuls").read().replace("\0", ">>>NUL<<<")

Dustin



More information about the Python-list mailing list