explicitly state encoding as utf-8
authorJason Skomorowski <jason@indexdata.com>
Wed, 11 Nov 2009 13:02:36 +0000 (08:02 -0500)
committerJason Skomorowski <jason@indexdata.com>
Wed, 11 Nov 2009 13:02:36 +0000 (08:02 -0500)
that probably took long than it was worth, but we want the output the same as xsl!

src/marcmap.c

index 6b5c42e..fb76338 100644 (file)
@@ -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");