subsurface/xslt
Miika Turkia 757791335f Support divelogs.de exports that include Cyrillic characters
divelogs.de sends us XML files that explicitly state that they are in
ISO-8859-1 encoding (which is true). These files contain the HTML encoded
Cyrillic characters. Once we decode those characters the resulting file is
actually UTF-8 encoded (which is a superset of ISO-8859-1). That seriously
confuses libxml when it tries to parse things.

So instead recognize divelogs.de files and skip the encoding declaration
for them before decoding the HTML encoded non-ISO-8859-1 characters.

This does show, however, that divelogs.de incorrectly truncates the
encoded strings (at least in some sample data that I created the parsing
throws errors because of that).

Reported-by: Sergey Starosek <sergey.starosek@gmail.com>
Based-on-code-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-03-15 16:29:37 -07:00
..
commonTemplates.xsl Fix XSLT when no weight system is given 2013-03-10 13:43:02 -07:00
divelogs-export.xslt Correct ending pressure for .DLD export 2013-03-14 12:20:05 -07:00
divelogs.xslt Support divelogs.de exports that include Cyrillic characters 2013-03-15 16:29:37 -07:00
DivingLog.xslt Identify converted files as imported 2013-03-08 10:17:33 -08:00
jdivelog2subsurface.xslt Identify converted files as imported 2013-03-08 10:17:33 -08:00
MacDive.xslt Identify converted files as imported 2013-03-08 10:17:33 -08:00
SuuntoSDM.xslt Identify converted files as imported 2013-03-08 10:17:33 -08:00
udcf.xslt Identify converted files as imported 2013-03-08 10:17:33 -08:00
uddf.xslt Identify converted files as imported 2013-03-08 10:17:33 -08:00