From: Adam Dickmeiss Date: Wed, 20 Oct 2004 20:35:33 +0000 (+0000) Subject: Fix bug #186: charset / marc problem with char A4. X-Git-Tag: YAZPROXY.0.9~29 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=cb20c53b31550b06aba668816710daf8257cb329;p=yazproxy-moved-to-github.git Fix bug #186: charset / marc problem with char A4. --- diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 892f867..68defcb 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -1,4 +1,4 @@ -/* $Id: yaz-proxy.cpp,v 1.8 2004-10-19 18:34:15 adam Exp $ +/* $Id: yaz-proxy.cpp,v 1.9 2004-10-20 20:35:33 adam Exp $ Copyright (c) 1998-2004, Index Data. This file is part of the yaz-proxy. @@ -762,7 +762,7 @@ void Yaz_Proxy::convert_to_marcxml(Z_NamePlusRecordList *p, if (!backend_charset) backend_charset = "MARC-8"; - yaz_iconv_t cd = yaz_iconv_open("UTF-8", "MARC-8"); + yaz_iconv_t cd = yaz_iconv_open("UTF-8", backend_charset); yaz_marc_t mt = yaz_marc_create(); yaz_marc_xml(mt, YAZ_MARC_MARCXML); yaz_marc_iconv(mt, cd);