From 8e189aaac36056e58b08573c6c57f8dabf1ef905 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 2 Jul 2007 22:15:11 +0000 Subject: Fixed xml encoding bug Removed defunct entry in BUGS re: clearmed Fixed bug caused by attempting to read the ISO-8859-1 xml file as UTF-8 git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-30 --- src/tocxml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tocxml.c') diff --git a/src/tocxml.c b/src/tocxml.c index 5fc7166..08ca12b 100644 --- a/src/tocxml.c +++ b/src/tocxml.c @@ -206,7 +206,8 @@ int cur_identifiers(char * filepath, char * title, issdates * date) { xmlDocPtr file; - if((file = xmlParseFile(filepath)) == NULL) +// if((file = xmlParseFile(filepath)) == NULL) + if((file = xmlReadFile(filepath, "ISO-8859-1", 0)) == NULL) { return 1; } -- cgit v1.2.3