From: Jason Skomorowski Date: Wed, 11 Nov 2009 13:02:36 +0000 (-0500) Subject: explicitly state encoding as utf-8 X-Git-Tag: v1.2.3~2^2~1 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=49d509aee25585029468c7a2803f91a29ed8355c;hp=e21851ef5461875e3929605afe79f23be86c2404;p=pazpar2-moved-to-github.git explicitly state encoding as utf-8 that probably took long than it was worth, but we want the output the same as xsl! --- diff --git a/src/marcmap.c b/src/marcmap.c index 6b5c42e..fb76338 100644 --- a/src/marcmap.c +++ b/src/marcmap.c @@ -138,6 +138,7 @@ xmlDoc *marcmap_apply(struct marcmap *marcmap, xmlDoc *xml_in) struct marcmap *mmcur; xml_out = xmlNewDoc(BAD_CAST "1.0"); + xml_out->encoding = xmlCharStrdup("UTF-8"); xml_out_root = xmlNewNode(NULL, BAD_CAST "record"); xmlDocSetRootElement(xml_out, xml_out_root); ns_pz = xmlNewNs(xml_out_root, BAD_CAST "http://www.indexdata.com/pazpar2/1.0", BAD_CAST "pz");