On 8/28/06, Jackie Shieh <[EMAIL PROTECTED]> wrote:

I ran the attached script against a USMARC record
and MARC::Record responded with

    Wide character in print at 1test.pl line 119.

Line 119 is:
    print OUT $record->as_usmarc();

What does it mean?  Thank you for any help you can provide!


It means that perl interpreted a byte sequence in your record as
UTF-8, and it's just warning you that the IO mode for the OUT
filehandle is not the same as the data suggests.  Most likely, you
have some MARC8 encoded data in your records, and, since perl doesn't
natively understand MARC8, it's doing its best to use the data as if
it were UTF-8 encoded.

Though it shouldn't be a problem (the original bytes should come out
intact) you'll probably want to take a look at the MARC::Charset
module if you'd like to transcode the data to UTF-8 (which is a
standard i18n encoding outside the library world), though you will
need to modify the LDR of records that you transcode in this way.

Hope that helps!

Regards,

--Jackie

--
Mike Rylander
[EMAIL PROTECTED]
GPLS -- PINES Development
Database Developer
http://open-ils.org

Reply via email to