Hi all, Here is an OCLC record:
http://liblime.com/public/oclc1.dat I feed it into the as_xml method and I get what appears to be valid XML: http://liblime.com/public/oclc1.xml When I take that xml and feed it to the new_from_xml method and print it to a file I get the error: Cannot decode string with wide characters at /usr/local/lib/perl/5.8.4/Encode.pm line 188. The script is killed and nothing gets written to disk. I realize this problem may have to do with improper encoding in the original binary MARC file, but apparantly, there are lots of these records in circulation (I've got about a dozen from OCLC), meaning there are cataloging clients out there that can edit these records and ILSes that can import/export them. Ideally, the MARC::Record suite would also be able to gracefully handle these records. So ... any suggestions for tracking down this problem? ... and what about ideas for handling these records 'in the wild' that have some encoding problems... what do other MARC libraries do? Cheers, -- Joshua Ferraro VENDOR SERVICES FOR OPEN-SOURCE SOFTWARE President, Technology migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS [EMAIL PROTECTED] |Full Demos at http://liblime.com/koha |1(888)KohaILS