Changeset 58a25d3 in subsurface


Ignore:
Timestamp:
Apr 18, 2017, 6:13:05 PM (8 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
c257144
Parents:
c88be99d
git-author:
Miika Turkia <miika.turkia@…> (04/16/17 08:12:36)
git-committer:
Dirk Hohndel <dirk@…> (04/18/17 18:13:05)
Message:

Attempt latin1 parsing on import

We parse input XML using UTF-8 encoding by default. If this fails, try
latin1 instead.

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/parse-xml.c

    re355037 r58a25d3  
    20432043        target_table = table;
    20442044        doc = xmlReadMemory(res, strlen(res), url, NULL, 0);
     2045        if (!doc)
     2046                doc = xmlReadMemory(res, strlen(res), url, "latin1", 0);
     2047
    20452048        if (res != buffer)
    20462049                free((char *)res);
Note: See TracChangeset for help on using the changeset viewer.