RE: printing UTF-8 encoded MARC records with as_usmarc

2012-08-15 Thread Doran, Michael D
n # 817-272-5326 office # 817-688-1926 mobile # do...@uta.edu # http://rocky.uta.edu/doran/ > -Original Message- > From: Smith,Devon [mailto:smit...@oclc.org] > Sent: Tuesday, July 31, 2012 8:26 AM > To: William Dueber; Shelley Doljack > Cc: perl4lib@perl.org > Subject: RE:

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-08-01 Thread Shelley Doljack
7;m looking for. Thanks, Shelley - Original Message - > From: "PHILLIPS M.E." > To: "Shelley Doljack" , perl4lib@perl.org > Sent: Wednesday, August 1, 2012 1:56:17 AM > Subject: RE: printing UTF-8 encoded MARC records with as_usmarc > > > -Origi

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 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: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread Dr. Saiful Amin
On Wed, Aug 1, 2012 at 12:47 AM, Shelley Doljack wrote: > 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-8 everything will be interpreted as > such, even when t

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread Shelley Doljack
> From: "William Dueber" > To: "Shelley Doljack" > Cc: perl4lib@perl.org > Sent: Monday, July 30, 2012 5:13:41 PM > Subject: Re: printing UTF-8 encoded MARC records with as_usmarc > First off, it's entirely possible that you have bad UTF-8 (per

RE: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread PHILLIPS M.E.
I recently came across a nasty issue with MARC::Record to do with output of Marc-8 encoded records. I was converting XML (which was in UTF-8) into MARC records using MARC::Record and had initially, and successfully, got good UTF-8 encoded MARC records out at the end. However, I then could not

RE: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread Smith,Devon
Subject: Re: printing UTF-8 encoded MARC records with as_usmarc First off, it's entirely possible that you have bad UTF-8 (perhaps rogue MARC-8, perhaps just lousy characters) in your MARC. I know we have plenty of that crap. You need to tell perl that you'll be outputting UTF-8 usin

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-07-30 Thread William Dueber
First off, it's entirely possible that you have bad UTF-8 (perhaps rogue MARC-8, perhaps just lousy characters) in your MARC. I know we have plenty of that crap. You need to tell perl that you'll be outputting UTF-8 using 'bincode' binmode(FILE, ':utf8'); In general, you'll want to do this to

printing UTF-8 encoded MARC records with as_usmarc

2012-07-30 Thread Shelley Doljack
Hi, I wrote a script that extracts marc records from a file given certain conditions and puts them in a new file. When my input record is correctly encoded in UTF-8 and I run my script from windows command prompt, this warning message appears: "Wide character in print at record_extraction.pl li