[Yazlist] php5-yaz 1.0.13 error encoding iso-8859-1

Miguel A. Calvo miguel.calvo at coremain.com
Fri Dec 7 10:05:42 CET 2007


Hello.

I try the simple and plain 

yaz_record($yaz_id, $i, "xml") 

But the encoding record  is UTF-8 and I need ISO-8859-1 encoding.

I try with:

yaz_record($yaz_id, $i, "xml")
yaz_record($yaz_id,$i,"xml;charset=UTF-8,ISO-8859-1") ;
yaz_record($yaz_id,$i,"xml;charset=marc-21,ISO-8859-1") ;
yaz_record($yaz_id,$i,"xml;charset=ISO-8859-1") ;
yaz_record($yaz_id,$i,"xml ;charset=UTF-8,ISO-8859-1") ;
yaz_record($yaz_id,$i,"xml ;charset=marc-21,ISO-8859-1") ;
yaz_record($yaz_id,$i,"xml ;charset=ISO-8859-1") ;

And nothing. 
 

Miguel A. Calvo Lázaro

Técnico de Software Factory

miguel.calvo at coremain.com

http://www.coremain.com


-----Mensaje original-----
De: yazlist-bounces at lists.indexdata.dk
[mailto:yazlist-bounces at lists.indexdata.dk] En nombre de Marc Cromme
Enviado el: miércoles, 28 de noviembre de 2007 12:11
Para: Discussion on the YAZ Z39.50 toolkit
Asunto: Re: [Yazlist] php5-yaz 1.0.13 error encoding iso-8859-1

Miguel A. Calvo wrote:
> Hi
>  
> I use php5-yaz version 1.0.13 in my program and the xml return from 
> this sentence isn't correct.
>  

When you say: 'is not correct', what do you mean by that??

Please remember that a marc-8 encoding is something reserved for binary
MARC-21 records. XML does not know of this encoding, there you usually wish
to use UTF-8 or  - maybe - ISO-8859-1.

Essentially, you are asking for the impossible ... marc-8 in XML ..

And there is no need to specify the encoding at all, as this is
self-contained information in XML files, and the default is UTF-8, which is
understood by all XML parsers.

Try just the simple and plain

yaz_record($yaz_id, $i, "xml")



Marc Cromme, Index Data

> 
> *yaz_record($yaz_id, $i, "xml;charset=marc-8,ISO-8859-1")*
> 
> and with the versión 1.0.8 all it´s ok
> 
> Can you help me? 
> 
>  
> 
> **
> 
> **
> 
> *Miguel A. Calvo Lázaro*
> 
> Técnico de Software Factory
> 
> *miguel.calvo at coremain.com <mailto:miguel.calvo at coremain.com>*
> 
> http://www.coremain.com <http://www.coremain.com/>
> 
>  
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> Yazlist mailing list
> Yazlist at lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist


-- 

Marc Cromme
M.Sc and Ph.D in Mathematical Modelling and Computation Senior Developer,
Project Manager

Index Data Aps
Købmagergade 43, 2
1150 Copenhagen K.
Denmark

tel: +45 3341 0100
fax: +45 3341 0101

http://www.indexdata.com

INDEX DATA Means Business
for Open Source and Open Standards





_______________________________________________
Yazlist mailing list
Yazlist at lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yazlist




More information about the Yazlist mailing list