RE: printing UTF-8 encoded MARC records with as_usmarc

2012-08-01 Thread PHILLIPS M.E.
> -Original Message- > From: Shelley Doljack [mailto:sdolj...@stanford.edu] > Sent: 31 July 2012 20:18 > > The problem was I wasn't telling perl to output UTF-8. Now that I added > binmode(FILE, ':utf8') to my script, the problem is fixed. However, it sounds > like once I set binmode to UTF

RE: Customizing MARC::Errorchecks

2012-08-01 Thread Dobrowolsky, Amy
Hi Shelley, Just as another option: you don't necessarily need to write a new module to do this. I have a similar situation (verifying the presence of an 856 field(s) as well as other fields). I just use the MARC::File::USMARC module to read through each record in the .mrc file and look for the

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-08-01 Thread Colin Campbell
On Tue, Jul 31, 2012 at 09:25:55AM -0400, Smith,Devon wrote: > I just recently came across this presentation which lays out pretty much all > the issues with Unicode in perl, and makes some recommendations for best > practices. You may find some general insight into the whole situation by > goin

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-08-01 Thread Shelley Doljack
Hi Matthew, Thanks for the advice. For this particular script, I'm not doing any data manipulation, so using :raw is probably the approach I want to take. I'm just feeding my script a list of record IDs and a MARC file in order to pull out records that have the record ID I'm looking for. Thank