jongough / ocpn_draw_pi

OpenCPN general drawing plug in
7 stars 17 forks source link

German Umlaut #530

Closed nocheinpeter closed 1 year ago

nocheinpeter commented 1 year ago

.gpx files containing german umlaut in filename / title cannot be loadad under android See attached file (Upload replaced the ä by au) Sperrgebiet Kampfmittelräumung.gpx.txt

nocheinpeter commented 1 year ago

Add now ZIP with original filename. Example.zip

German umlauts are ä, ö, ü ä = au ö = oe ü = ue

maybe ß = ss won't work, too.

jongough commented 1 year ago

I have just done a trial on a Ubuntu machine (setup of English Australian) and it imported both files. The file manager shows: image and both give the same looking boundary in OCPN: image I am not really sure what android shows when it displays umlauts in its native filemanager, I presume using the German character set (inlcuding umlauts).

Have you tried the same test on OCPN using a route that has a name with umlauts in it, then exporting and re-importing to see if OCPN handles this correctly? Also, in OCPN/Options/User Interface, what language do you have set?

nocheinpeter commented 1 year ago

I use german language settings. The file manager works with umlaut. I created the file on windows and then imported it on android. Import route file into android opencpn with umlaut created on windows does not work either.

Test German Umlaut ä.zip

nocheinpeter commented 1 year ago

When I try to export a route on android with an umlaut in the filename, the file is empty.

jongough commented 1 year ago

I have just done an import of the route on Ubuntu (desktop) and it works fine. So it would appear to be an issue with android and its handling of national characters. As both route and boundaries have the same issue could you please raise an issue on OCPN about the 'route' not being imported correctly. That development stream has more people active on it from Europe and who can look at this type of issue more easily. Both Draw and OCPN use similar code for importing/exporting files and therefore if there is a fix for OCPN it can be fairly easily, I hope, implemented into Draw.

Sorry for the runaround.

nocheinpeter commented 1 year ago

No big thing. If people know, replacing nationial characters is easy. I will forward the bug to openCPN.

jongough commented 1 year ago

Thanks, I will try to keep an eye out for what happens and implement any change if I can.

nocheinpeter commented 1 year ago

Reported at https://github.com/OpenCPN/OpenCPN/issues/3363