[PATCH] Check if DLD contains non-ascii characters

Rainer Mohr mail at divelogs.de
Wed Apr 3 06:06:06 PDT 2013


On 03.04.2013 11:38, Miika Turkia wrote:
> I still get following on export:
> <CYLINDERDESCRIPTION><![CDATA[сме]]></CYLINDERDESCRIPTION>
>
> the encoding is said to be UTF-8 but the content is still encoded with 
> character references in CDATA. Is this because of how my test dives 
> were imported or is it a bug? (Scandinavian characters show properly 
> but they also are in CDATA...)
>

Were those dives entered before yesterday? If yes, then its because of 
the conversion that happened in pre-UTF8-ages and that's what's in the 
database.
If you enter new dives today, you shouldn't get these html-encoded 
characters in the Export. Could you test that with a dive?
Please leave the existing dive, so I can look for a way to convert them 
to readable characters before sending the XML (for legacy data)

Rainer



More information about the subsurface mailing list