Re: [CODE4LIB] marc-8

2011-10-24 Thread Doran, Michael D
Sent: Monday, October 24, 2011 2:14 PM > To: Code for Libraries > Cc: Doran, Michael D > Subject: Re: [CODE4LIB] marc-8 > > Yeah, but if there's Perl code and Java code to do it, can't be _that_ > hard to port to ruby if I could figure out what you need to do to &g

Re: [CODE4LIB] marc-8

2011-10-24 Thread Eric Lease Morgan
On Oct 24, 2011, at 3:03 PM, Jon Gorman wrote: > yaz-marcdump -f MARC-8 -t UTF-8 -o marc -l 9=97 marc21.raw >marc21.utf8.raw This worked great! My version of yaz-marcdump was older and was not doing the trick. code4lib++ -- Eric

Re: [CODE4LIB] marc-8

2011-10-24 Thread Jonathan Rochkind
chkind Sent: Monday, October 24, 2011 2:01 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] marc-8 What _ought_ to be easiest of all is getting our ILS's to NEVER export Marc8 _ever_ again. UTF8 only. Sadly, that only ought to be easiest. But IMO there's no reason any of us s

Re: [CODE4LIB] marc-8

2011-10-24 Thread Doran, Michael D
ter sets (http://www.loc.gov/marc/specifications/speccharmarc8.html#alternative). > -Original Message- > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of > Jonathan Rochkind > Sent: Monday, October 24, 2011 2:01 PM > To: CODE4LIB@LISTSERV.ND.EDU >

Re: [CODE4LIB] marc-8

2011-10-24 Thread Jon Gorman
>>> In Perl, how do I specify MARC-8 when reading (decoding) and writing >>> (encoding) data? >> >> You can't. MARC-8 is a character set that is unknown to the operating >> system. Your best bet is to convert MARC-8-encoded records into UTF-8. > > /me throws his hands up in the air and screams!

Re: [CODE4LIB] marc-8

2011-10-24 Thread Jonathan Rochkind
'Code for Libraries' Subject: RE: [CODE4LIB] marc-8 Okay. How do I go about converting MARC-8 encoded records into UTF-8? In Perl... using the handy MARC::Charset module (tip 'o the hat to Ed Summers, and now maintained by Galen Charlton). -- Michael -Original Me

Re: [CODE4LIB] marc-8

2011-10-24 Thread Jonathan Rochkind
On 10/24/2011 2:52 PM, Ross Singer wrote: On Mon, Oct 24, 2011 at 7:39 PM, Eric Lease Morgan wrote: Okay. How do I go about converting MARC-8 encoded records into UTF-8? I know yaz-marcdump changes the encoding bit in MARC leaders. Does it also convert MARC-8 characters to UTF-8? (I guess I

Re: [CODE4LIB] marc-8

2011-10-24 Thread Michael J. Giarlo
rset module (tip 'o the hat to Ed >> Summers, and now maintained by Galen Charlton). >> >> -- Michael >> >>> -Original Message- >>> From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of >>> Eric >>> Lease

Re: [CODE4LIB] marc-8

2011-10-24 Thread Doran, Michael D
chael > -Original Message- > From: Doran, Michael D > Sent: Monday, October 24, 2011 1:48 PM > To: 'Code for Libraries' > Subject: RE: [CODE4LIB] marc-8 > > > Okay. How do I go about converting MARC-8 encoded records into UTF-8? > > In Perl... usi

Re: [CODE4LIB] marc-8

2011-10-24 Thread Ross Singer
On Mon, Oct 24, 2011 at 7:39 PM, Eric Lease Morgan wrote: > Okay. How do I go about converting MARC-8 encoded records into UTF-8? I know > yaz-marcdump changes the encoding bit in MARC leaders. Does it also convert > MARC-8 characters to UTF-8? (I guess I could simply try it and see what > hap

Re: [CODE4LIB] marc-8

2011-10-24 Thread Jonathan Rochkind
D.EDU Subject: Re: [CODE4LIB] marc-8 On Oct 24, 2011, at 2:34 PM, Doran, Michael D wrote: In Perl, how do I specify MARC-8 when reading (decoding) and writing (encoding) data? You can't. MARC-8 is a character set that is unknown to the operating system. Your best bet is to convert MARC

Re: [CODE4LIB] marc-8

2011-10-24 Thread Jonathan Rochkind
for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Eric Lease Morgan Sent: Monday, October 24, 2011 1:18 PM To: CODE4LIB@LISTSERV.ND.EDU Subject: [CODE4LIB] marc-8 In Perl, how do I specify MARC-8 when reading (decoding) and writing (encoding) data? Character encoding is the bane of my

Re: [CODE4LIB] marc-8

2011-10-24 Thread Doran, Michael D
ERV.ND.EDU] On Behalf Of Eric > Lease Morgan > Sent: Monday, October 24, 2011 1:39 PM > To: CODE4LIB@LISTSERV.ND.EDU > Subject: Re: [CODE4LIB] marc-8 > > On Oct 24, 2011, at 2:34 PM, Doran, Michael D wrote: > > >> In Perl, how do I specify MARC-8 when reading

Re: [CODE4LIB] marc-8

2011-10-24 Thread Walker, David
- From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Eric Lease Morgan Sent: Monday, October 24, 2011 11:39 AM To: CODE4LIB@LISTSERV.ND.EDU Subject: Re: [CODE4LIB] marc-8 On Oct 24, 2011, at 2:34 PM, Doran, Michael D wrote: >> In Perl, how do I specify MARC-8 when reading (d

Re: [CODE4LIB] marc-8

2011-10-24 Thread Eric Lease Morgan
On Oct 24, 2011, at 2:34 PM, Doran, Michael D wrote: >> In Perl, how do I specify MARC-8 when reading (decoding) and writing >> (encoding) data? > > You can't. MARC-8 is a character set that is unknown to the operating > system. Your best bet is to convert MARC-8-encoded records into UTF-8.

Re: [CODE4LIB] marc-8

2011-10-24 Thread Doran, Michael D
> > > -Original Message- > > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of > Eric > > Lease Morgan > > Sent: Monday, October 24, 2011 1:18 PM > > To: CODE4LIB@LISTSERV.ND.EDU > > Subject: [CODE4LIB] marc-8 > >

Re: [CODE4LIB] marc-8

2011-10-24 Thread Doran, Michael D
--- > From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Eric > Lease Morgan > Sent: Monday, October 24, 2011 1:18 PM > To: CODE4LIB@LISTSERV.ND.EDU > Subject: [CODE4LIB] marc-8 > > In Perl, how do I specify MARC-8 when reading (decoding) and writing > (enc

[CODE4LIB] marc-8

2011-10-24 Thread Eric Lease Morgan
In Perl, how do I specify MARC-8 when reading (decoding) and writing (encoding) data? Character encoding is the bane of my existence. I have learned that when reading from a file I ought to specify the type of encoding the file is in and decode accordingly, or else. Once read, it is converted i