Re: [Gpsbabel-code] Charset issue converting from ov2/tomtom since 1.5.0
Brought to you by:
robertl
From: tsteven4 <tst...@gm...> - 2015-04-07 00:23:14
|
This resolves the issue, but I didn't remember/chase down the history. Comments? > Index: tomtom.cc > =================================================================== > --- tomtom.cc (revision 4985) > +++ tomtom.cc (working copy) > @@ -41,6 +41,7 @@ > #include "defs.h" > #include <stdio.h> // sprintf > #include <stdlib.h> // qsort > +#include <QtCore/QTextCodec> > > #define MYNAME "TomTom" > > @@ -197,7 +198,7 @@ > > wpt_tmp->longitude = x/100000.0; > wpt_tmp->latitude = y/100000.0; > - wpt_tmp->description = desc; > + wpt_tmp->description = STRTOUNICODE(desc); > xfree(desc); > desc = NULL; > // TODO:: description in rectype 3 contains two zero-terminated > strings On 4/6/2015 1:40 AM, Lukas Rytz wrote: > Hello > > Since 1.5.0, gpsbabel introduces the unicode replacement character > (http://www.fileformat.info/info/unicode/char/0fffd/index.htm) > for umlauts and other special characters when converting an ov2/tomtom > file to gpx. > > It works fine using 1.4.4. > > I uploaded the original ov2 file and a gpx file converted with both > versions here: https://gist.github.com/lrytz/fd1af5aad4ff71ced259 > > Kind regards, > Lukas > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > > > _______________________________________________ > Gpsbabel-code mailing list http://www.gpsbabel.org > Gps...@li... > https://lists.sourceforge.net/lists/listinfo/gpsbabel-code |