Re: MARC::Charset and transcoding of MARC::Record objects
[email protected] (Edward Summers)
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <[email protected]> |
On Sep 22, 2006, at 6:06 AM, Leif Andersson wrote: > How would you guys do to transcode a whole MARC record, contained > in a MARC::Record object, from MARC8 to UTF8? I'd probably extend marc8_to_utf8() in MARC::Charset so that it not only transcoded strings, but records as well. The function would essentially just iterate through a record transcoding each field/ subfield and building up a new record which it would return. If you do happen to do that please send me a patch :-) > I seem to recall someone on this list mentioning the path MARC > Record (MARC8) -> MARCXML (UTF8) -> MARC Record (UTF8) > This trip involves, I'd guess, MARC::File::XML in addition to > MARC::Charset You could do that yeah...although it would be doing lots of unnecessary xml stuff and disk IO. //Ed