Re: ERROR : "\xF9" does not map to Unicode
[email protected] (Jordi Pallares)
| Newsgroups | perl.perl4lib |
|---|---|
| Message-ID | <[email protected]> |
Yes they convert to Unicode. I pass them the records in CP1252. In some cases I found It each 6000 records but in other more often... It's not a regular patron... The bad notice Is i have 4million records. Thanks MarK En/na Mark Jordan ha escrit: > Hi Jordi, > > Did III convert your database to Unicode? If so, they encoded it into 'raw' Unicode, not utf8. Also, how frequently is the error happening? > > Mark > > > Mark Jordan > Head of Library Systems > W.A.C. Bennett Library, Simon Fraser University > Burnaby, British Columbia, V5A 1S6, Canada > Voice: 778.782.5753 / Fax: 778.782.3023 > [email protected] > > ----- "Jordi Pallares" <[email protected]> wrote: > >> Hi, >> >> >> I try to process some records obtained frommy ILS system (Millennium) >> in >> UTF-8 characterset and I obtain this error: >> >> utf8 "\xF9" does not map to Unicode at >> /usr/lib/perl5/5.10.0/i386-linux-thread-multi/Encode.pm line 162. >> >> I use a Unix Machine with FEDORA CORE 10 and perl 5 installed. I >> installed MARC::Record using CPAN installation. >> >> I created a little program to test the records and I put It here to >> accept some invoices: >> >> >> use strict; >> use warnings; >> >> use MARC::Batch; >> use MARC::Charset; >> >> >> my $setting = MARC::Charset->assume_unicode(1); >> my $ignore = MARC::Charset->ignore_errors(1); >> >> >> my $batch = MARC::Batch->new('USMARC', 'FILE.out'); >> >> my $count=0; >> while(my $record = $batch->next()){ >> my $Etq001 = $record->field('001'); >> $count++; >> print $count,"---",$Etq001->as_string(),"\n"; >> >> } >> print "TOTAL",$count,"\n"; >> >> >> Anybody have any Idea? >> >> Thanks in advance... >> >> >> >> -- >> ***************************************** >> Jordi PallarÃÅ¡s Llorens >> [email protected] >> >> Consorci de Biblioteques Università ries de Catalunya (CBUC) >> http://www.cbuc.es >> >> Tel: 93 205 13 06 ext.806 (NOU TELEFON) >> Fax: 93 205 01 50 > -- ***************************************** Jordi PallarÚs Llorens [email protected] Consorci de Biblioteques Università ries de Catalunya (CBUC) http://www.cbuc.es Tel: 93 205 13 06 ext.806 (NOU TELEFON) Fax: 93 205 01 50