diff options
author | Nick White <arch@njw.me.uk> | 2007-07-02 22:15:11 +0000 |
---|---|---|
committer | Nick White <arch@njw.me.uk> | 2007-07-02 22:15:11 +0000 |
commit | 8e189aaac36056e58b08573c6c57f8dabf1ef905 (patch) | |
tree | 74e16450f4a5040221ecdfdd9707ce0f4c47b44c /src/xml.c | |
parent | 5b4f728bc58d137dd946030d8c11b309b1216743 (diff) |
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
Diffstat (limited to 'src/xml.c')
-rw-r--r-- | src/xml.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -34,7 +34,8 @@ int ready_xml(char * filepath, char * rootnode, xmlDocPtr * file, xmlNodePtr * n if(access(filepath, R_OK) != 0) return 1; - if((*file = xmlParseFile(filepath)) == NULL) +// if((*file = xmlParseFile(filepath)) == NULL) + if((*file = xmlReadFile(filepath, "ISO-8859-1", 0)) == NULL) { fprintf(stderr, "Error: cannot open xml file %s\n", filepath); return 1; |