Re: Opening & writing to UTF-8 files; copyright symbol again -- solution

2015-11-16 Thread Colin Campbell
8022.edited.bib'; > open (my $output_marc, '>', $outfile) or die "Couldn't open file $!" ; > binmode($output_marc, ':utf8'); > You can set the correct encoding succinctly on opening files e.g. open my $fh, '>:encoding(UTF-8)', $outfile Hope that helps C. -- Colin Campbell

Re: printing UTF-8 encoded MARC records with as_usmarc

2012-08-01 Thread Colin Campbell
over it. In the course of preparing the latest edition of the Camel book Tom Christiansen created a Perl Unicode Cookbook see http://www.perl.com/pub/2012/04/perlunicook-standard-preamble.html Its available in a few different places on the web C. -- Colin Campbell Chief Software Engineer, PTFS

Re: Turning MARC record object back into a string

2012-03-14 Thread Colin Campbell
control characters or the character set used in the record. But I suspect thats not a problem because sprintf would not have changed that. Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited Content Management and Library Solutions +44 (0) 800 756 6803 (phone) +44 (0) 7759 633626

Re: Bug in MARC::Record ?

2011-01-05 Thread Colin Campbell
On 05/01/11 10:21, Paul Poulain wrote: Hello, replace use Carp qw(croak); by use Carp qw(croak carp); and things are going much better. More simply just use Carp; croak and carp (and confess) are exported by default. Colin -- Colin Campbell Chief Software Engineer, PTFS Europe Limited

Re: Moose based Perl library for MARC records

2010-11-10 Thread Colin Campbell
most closely. MooseX is wrong. MooseX is the namespace for extensions to Moose such as new Types. This module should be in the MARC namespace. Something like MARC::NG is called for. Looking forward to using this, Frédéric, good idea Cheers Colin -- Colin Campbell Chief Software Engineer, PTFS

Re: MARC Records, XML, and encoding

2006-05-18 Thread Colin Campbell
Edward Summers wrote: On May 18, 2006, at 6:48 AM, Joshua Ferraro wrote: Anyway, if anyone can shed some light on this I'd be grateful. I believe the data loss you are seeing is due to your source records--not to do with character translation. Just a quick look but I think in many cases the

Re: Corrupt MARC records

2005-05-11 Thread Colin Campbell
and it took a while to trace it back to this cause. Colin -- Colin Campbell Software Development Consultant Sirsi Ltd

Re: [patch] Accept # as Blank Indicator

2003-11-19 Thread Colin Campbell
for the Human reader that LOC's hash is doing (showing it is a space not a null string) Colin -- Colin Campbell Technical Services Consultant Sirsi Ltd [EMAIL PROTECTED]

Re: Manuall created records

2003-10-15 Thread Colin Campbell
strict...=) but for the time being, it seems to work. The first field terminator should be after the directory (which follows the label) C. -- Colin Campbell Technical Services Consultant Sirsi Ltd [EMAIL PROTECTED]