
Hi, I've just found out, why the maps with routing capabilities enabled don't show the german umlauts. There are two places, where faults occur: First you have to tell osm2mp to use the codepage CP1252, as CP1251 doesn't include the umlauts. (osm2mp does a conversion from utf-8 to a codepage if you dont set -nocodepage on the commandline.) Second fault takes place in the mkgmap tool, where in class PolischMapDataSource in line 86 no encoding is given and therefore taken as ascii. So all umlauts gets replaced by a '?'. Quick solution: The line Reader reader = new InputStreamReader(openFile(name)); should read Reader reader = new InputStreamReader(openFile(name), "CP1252"); The clean solution would be to read the codepage from the mp file itself, as there is an entry for it. While debugging, I made an interesting detection: My Garmin etrex Venture Cx displays lower case letters for some labels! As far as I can see, it's only the case for city names, not for streets, but maybe I can find out more. Regards, Johann

Hi
I've just found out, why the maps with routing capabilities enabled don't show the german umlauts. There are two places, where faults occur:
Thanks for looking into this and finding the problem. I can now see why it worked for some people using different codepage options to osm2mp.
Reader reader = new InputStreamReader(openFile(name));
When no charset is given, then the default one is used, which differs from platform to platform, so if you gave a matching codepage to osm2mp (and that allowed umlauts) then it could work.
should read Reader reader = new InputStreamReader(openFile(name), "CP1252");
The clean solution would be to read the codepage from the mp file itself, as there is an entry for it.
Ok so I will look for the CodePage=xxxx option and use that when opening the file.
While debugging, I made an interesting detection: My Garmin etrex Venture Cx displays lower case letters for some labels! As far as I can see, it's only the case for city names, not for streets, but maybe I can find out more.
I think you will find that it does this even if the labels are all in upper case and it is just lowercasing all but the first letter of a word. I added an --lower-case option some time back if you want to see if your etrex can really display lowercase. Best Regards, ..Steve
participants (2)
-
Johann Gail
-
Steve Ratcliffe