List Info

Thread: YAZ character conversion




YAZ character conversion
user name
2006-11-22 17:15:37
> >> I am interested in using the portions of YAZ
> relating to MARC-8/UTF-8 
> >> character conversion.  Does the YAZ library
rely
> on the XML conversion 
> >> file provided by the Library of Congress?
> 
> Yes and no. Any application (including one based on
> YAZ) receiving XML 
> records from the LoC Z39.50 server must assume that
> it has done the 
> MARC-8 to UTF-8 conversion in a proper manner.
> 
> OTOH, if a client fetches MARC21/USMARC in MARC-8 it
> must do the 
> conversion itself on the client-side. YAZ + MARC4J
> includes facilities 
> to convert from MARC-8 to UTF-8. And both has
> facilities to convert from 
>   MARC21 to MARCXML as well.
> 
> / Adam
> 

Could I see an example of this?  From the PHP manuals
it seems that to perform this conversion one appends
"; charset=marc-8,utf-8" to the last argument of
the
yaz_record function.  This has never worked for me,
however, either when fetching in xml or string record
format and simply produces records with empty 880
fields- e.g. 

$rec = yaz_record($target->mConnection,$p,"string;
charset=marc-8,utf-8");

$rec = yaz_record($target->mConnection,$p,"xml;
charset=marc-8,utf-8");

Am I missing something very basic here?  Also, is it
possible to do "in-line", client-side character
set
conversion in PHP w/o resorting to calling external
executables/programs?

Your help is appreciated.


 
____________________________________________________________
________________________
Sponsored Link

Mortgage rates near 39yr lows. $420k for $1,399/mo. 
Calculate new payment! www.LowerMyBills.com/lre

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )