> -----Original Message----- > From: Edward Summers [mailto:[EMAIL PROTECTED] > Sent: 27 September, 2005 10:36 > To: perl4lib@perl.org > Subject: Re: Use of encode([$encoding]) in MARC-XML > > On Sep 27, 2005, at 7:29 AM, Sperr, Edwin wrote: > > I'm attempting to use XSL (on a Windows server) to > transform XML that > > I generated using MARC::File::XML. However, I keep running into > > errors because of illegal characters. > > Well part of the problem is that MARC::File::XML does not do > character conversion from MARC-8 to UTF-8. If you aren't > concerned about special characters immediately try changing > the encoding in the XML declaration to ISO-8859-1. If that > does the trick let me know and I'll provide details on how to > do this with the MARC::File::XML api.
While changing the XML declaration to ISO-8859-1 might work to allow an XML parser to deal with the file, I vaguely remember that the MARC-XML standard required that the encoding attribute be UTF-8. Can anyone verify that, a pointer would be helpful, or was I just dreaming... Andy.