[PATCH] DLD upload

Miika Turkia miika.turkia at gmail.com
Thu Mar 14 12:03:22 PDT 2013


On Thu, Mar 14, 2013 at 6:36 PM, Sergey Starosek
<sergey.starosek at gmail.com> wrote:
> Miika,
>
> On Thu, Mar 14, 2013 at 5:23 PM, Miika Turkia <miika.turkia at gmail.com>
> wrote:
>>
>> > The problem arises when you export dives from divelogs.de:
>> >
>> > 1. XML declares iso-8859-1 charset
>> > 2. All Cyrillic characters are represented and numeric references.
>> > Unfortunately Subsurface imports them as-is.
>>
>> Looks like the CDATA around any free form fields was critical. The
>> patch I just sent should take care of this. (Having the
>> cdata-section-elements declared seems to imply also that the content
>> of the mentioned elements is to be pure ascii, so no need for further
>> character set hacking.)
>
>
> Can you please take a look at divelogs import template as well? Probably the
> same approach will work for it.
> Currently I still observe character references in Notes/Location/Buddy
> fields after divelogs import.

Unfortunately this is a tougher nut to crack, but I am working on it.
(Probably turns out to be really easy once I find the right cure.)

miika


More information about the subsurface mailing list