Quantcast

Charset issue converting from ov2/tomtom since 1.5.0

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Charset issue converting from ov2/tomtom since 1.5.0

Lukas Rytz
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Charset issue converting from ov2/tomtom since 1.5.0

tsteven4-2
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Charset issue converting from ov2/tomtom since 1.5.0

Robert Lipe-4
Seems OK.

Thanx, Steve.

On Mon, Apr 6, 2015 at 7:23 PM, tsteven4 <[hidden email]> wrote:
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Charset issue converting from ov2/tomtom since 1.5.0

tsteven4-2
In reply to this post by Lukas Rytz
Lukas,

I have a fix for the tomtom read problem you reported, and an associated tomtom write problem.
Will you grant us permission to use your file "file.ov2" from the github link below as a test case.  We would want to add it to our publicly available repository.

Thanks,
Steve

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Charset issue converting from ov2/tomtom since 1.5.0

Lukas Rytz
Hi Steve,

Feel free to include the file in the repo, nothing sensitive in there.
Thanks for the fix!

Best,
Lukas



On Wednesday, April 8, 2015, tsteven4 <[hidden email]> wrote:
Lukas,

I have a fix for the tomtom read problem you reported, and an associated tomtom write problem.
Will you grant us permission to use your file "file.ov2" from the github link below as a test case.  We would want to add it to our publicly available repository.

Thanks,
Steve

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
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;Gpsbabel-code@lists.sourceforge.net&#39;);" target="_blank">Gpsbabel-code@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code
Loading...