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
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
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
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
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
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
and it took a while to trace it back to this cause.
Colin
--
Colin Campbell
Software Development Consultant
Sirsi Ltd
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]
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]