Re: [greenstone-users] MARC --> GREENSTONE

From Richard Managh
DateFri, 01 Jun 2007 12:17:07 +1200
Subject Re: [greenstone-users] MARC --> GREENSTONE
In-Reply-To (464DA7EF-9080104-ulib-sk)
Hi Tom□□,

I've taken a look at this. MARCPlug uses the perl library MARC:Record to read marc files. MARC records can be in two different encodings, MARC-8, and UTF-8. This library defaults to using the MARC-8 encoding when reading the files, and I dont believe it handles the records automatically if they are in fact in UTF-8. So the problem is not how greenstone handles the encoding, but seems to be with the MARC:Record reader before the data even gets to greenstone.

I looked up MARC:Record on cpan, turns out that there is a "encoding" function that has been added to the Record library, that allows the encoding to be set, however this function isnt in the MARC perl library currently in greenstone. You could try updating the MARC libraries used by greenstone perhaps, and/or using the encoding function below to set the encoding to UTF-8 in

Hope this helps,

DL Consulting
Greenstone Digital Library and Digitisation Specialists

Tom□□ Fiala wrote:
Hi all,

when i try to convert our marc database ( the letters are not properly displayed.

The DB file is encoded in UTF-8, but when i process it with MARCPLUG (input UTF-8) i see no metadata. After selecting another input like : (iso 8859-2 or Windows 1250) the data is there but some letters are not displayed properly.

The function explode database, explodes the records but some letters are not displayed properly and after selecting input UTF-8 there are no metadata from marc.

Please could anyone help us ?

Many thanks for any replies !


Tomas Fiala

_______________________________________________ greenstone-users mailing list