Nice work trying out the various flags, it is incredibly frustrating
right? If you can share a few (or all these records I'd be interested
to see what character set they are coded as being in). That's position
9 in the leader normally.
Can you try opening your writer filehandle so that it will expect
utf-8 instead of 'ascii'?
import codecs
fh = codecs.open("new-marc.dat", "w", "utf-8")
writer = pymarc.MARCWriter(fh)
In general pymarc is useful for getting data out of MARC into
something like a database or XML, and is lacking in some write
functionality, notably the ability to write MARC-8 encoded data back
out. What are you trying to do with this large dump of data, other
than experimenting?
//Ed
> --
> You received this message because you are subscribed to the Google Groups
> "pymarc Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pymarc+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>