RE: printing UTF-8 encoded MARC records with as_usmarc

2012-08-15 Thread Doran, Michael D
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: printing UTF-8 encoded MARC records with as_usmarc I just

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-8

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 going

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 using 'bincode

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-07-31 Thread Shelley Doljack
To: Shelley Doljack sdolj...@stanford.edu 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 (perhaps rogue MARC-8, perhaps just lousy characters) in your MARC. I know we

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 sdolj...@stanford.eduwrote: 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

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

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