[PATCH] DLD upload
Dirk Hohndel
dirk at hohndel.org
Fri Mar 15 12:38:54 PDT 2013
"Lubomir I. Ivanov" <neolit123 at gmail.com> writes:
> On 15 March 2013 19:47, Dirk Hohndel <dirk at hohndel.org> wrote:
>> Miika Turkia <miika.turkia at gmail.com> writes:
>>> I have attached my version of the patch (that is effectively exactly
>>> same what Sergey sent, but that is what I already had in my xslt file
>>> at the time).But as said I am not sure if this is the right way to go.
>>> At least I would like to get input from Rainer first to hear his
>>> opinion about the kind of double-encoding issue.
>>
>> So here's an XML (4.xml) that came from the DLD export of the current
>> subsurfacetest dive log:
>>
>> <?xml version="1.0" encoding="iso-8859-1"?>
>> <DIVELOGSDATA>
>> <DIVELOGSDIVENUMBER>4</DIVELOGSDIVENUMBER>
>> <DIVELOGSID>607980</DIVELOGSID>
>> <DATE>03.03.2013</DATE>
>> <TIME>10:30:00</TIME>
>> <DIVETIMESEC>2700</DIVETIMESEC>
>> <SURFACETIME>0</SURFACETIME>
>> <MAXDEPTH>30.5</MAXDEPTH>
>> <MEANDEPTH>24.4</MEANDEPTH>
>> <LOCATION><![CDATA[красивый остров]]></LOCATION>
>> <SITE><![CDATA[Некотор&]]></SITE>
>> <WEATHER><![CDATA[отл]]></WEATHER>
>> <WATERVIZIBILITY><![CDATA[отли&#]]></WATERVIZIBILITY>
>> <AIRTEMP>31.1</AIRTEMP>
>> <WATERTEMPMAXDEPTH>29.4</WATERTEMPMAXDEPTH>
>> <WATERTEMPATEND>30.6</WATERTEMPATEND>
>> <PARTNER><![CDATA[Дмитрий]]></PARTNER>
>> <BOATNAME><![CDATA[открыти&]]></BOATNAME>
>> <CYLINDERDESCRIPTION><![CDATA[алюмиl]]></CYLINDERDESCRIPTION>
>> <DBLTANK>0</DBLTANK>
>> <CYLINDERSIZE>10.96</CYLINDERSIZE>
>> <CYLINDERSTARTPRESSURE>206.70</CYLINDERSTARTPRESSURE>
>> <CYLINDERENDPRESSURE>68.90</CYLINDERENDPRESSURE>
>> <WORKINGPRESSURE>206.70</WORKINGPRESSURE>
>> <WEIGHT>4.54</WEIGHT>
>> <O2PCT>36.0</O2PCT>
>> <LOGNOTES><![CDATA[Это тест погружения, который пытается использовать символы кириллицы в стольких местах, как это возможно.]]>
>
> some of the strings seem to be cut-off shortly or have extra
> characters at the end:
> <BOATNAME>
> <CYLINDERDESCRIPTION>
> <WATERVIZIBILITY>
> <WEATHER>
>
> other than that, the text seems valid enough to me.
Yes, it is indeed valid - we just don't import it correctly.
I'm getting closer but am not there yet.
Why some of them are cut off, though, I don't understand, yet.
Maybe Rainer has certain maximum field length and with the multi-byte
encoding those are exceeded too easily?
/D
More information about the subsurface
mailing list