work around issue in MARC::Charset
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 31 Mar 2008 16:57:18 +0000 (11:57 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 1 Apr 2008 11:46:04 +0000 (06:46 -0500)
commitcfea1725448518f12056bff63ec5624ab82d5afb
tree211d2b3c78d70490b3c59cbd98d8a174dbc6e709
parented35df0eb4ca2ed69e13ddd35ebdefb8ce52fde4
work around issue in MARC::Charset

Because of a bug in MARC::Charset 0.98, if a string to convert from
MARC-8 to UTF-8 has (a) one or more diacritics that (b) are only in character positions
128 to 255 inclusive, the resulting converted string is not in
UTF-8, but the legacy 8-bit encoding (e.g., ISO-8859-1).  As a result,
when such a record is converted to XML using ->as_xml_record(), the resulting
XML can be truncated at the offending character.  An example of such a record
is one that has a price in Briish pounds in the 260$c but no other diacritics.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Charset.pm