<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi Ticker,
</div>
<div>
<br>
</div>
<div>
now all is OK. I delete äöü in the typ/txt files and give mkgmap the option --latin1.
</div>
<div>
<br>
</div>
<div>
Thank you!
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Greets
</div>
<div>
<br>
</div>
<div>
Arndt
</div>
<blockquote type="cite">
<div>
Ticker Berkin <
<a href="mailto:rwb-mkgmap@jagit.co.uk">rwb-mkgmap@jagit.co.uk</a>> hat am 15. Februar 2020 um 14:03 geschrieben:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Hi Arndt
</div>
<div>
<br>
</div>
<div>
Looking back at the first posting, the messages seem to be from
</div>
<div>
TYPViewer on the .typ file rather than the .txt file.
</div>
<div>
<br>
</div>
<div>
What codepage are your TYP .txt files written in? It looks like 1252.
</div>
<div>
How did you generate the .typ from the .txt? If mkgmap, what command
</div>
<div>
line --code-page did you have? (or --charset). When using mkgmap to
</div>
<div>
convert .txt to .typ, the --code-page overrides any CodePage= line in
</div>
<div>
the .txt file.
</div>
<div>
<br>
</div>
<div>
It is possible that this is where there has been a change. No --code
</div>
<div>
-page specified to mkgmap defaults the map.img to ascii/cp0 I think,
</div>
<div>
but maybe the typ file used to default to its value of 'CodePage', but
</div>
<div>
now uses the mkgmap value.
</div>
<div>
<br>
</div>
<div>
The messages TYPview is giving could be because it considers the code
</div>
<div>
-page to be 7-bit ASCII but it is finding strings with the top bit set.
</div>
<div>
<br>
</div>
<div>
This all seems to fit when what you've just said. When using mkgmap to
</div>
<div>
convert your .txt, use the same --code-page as you will for your final
</div>
<div>
maps.
</div>
<div>
<br>
</div>
<div>
Ticker
</div>
<div>
<br>
</div>
<div>
On Sat, 2020-02-15 at 13:10 +0100, Arndt Röhrig wrote:
</div>
<blockquote type="cite">
<div>
Hi Ticker,
</div>
<div>
<br>
</div>
<div>
"and then doesn't
</div>
<div>
like various strings that can't be represented in that code page."
</div>
<div>
<br>
</div>
<div>
That brings me to the idea to look at "ä ö ü" in my typ file. When i
</div>
<div>
kill this, it works better :)
</div>
<div>
<br>
</div>
<div>
Now, TYPViewer says only this:
</div>
<div>
Unbekannte CodePage-Nummer: 0
</div>
<div>
TYPViewer ersetzte die CodePage mit 1252
</div>
<div>
<br>
</div>
<div>
When i set the option --latin1 in mkgmap this message is gone. It
</div>
<div>
seems, that mkgmap ignore the codepage line in the typ-file?
</div>
<div>
<br>
</div>
<div>
No matter, i know now, what to do, even tough i don´t understand why
</div>
<div>
:)
</div>
<div>
<br>
</div>
<div>
Thank you for helping me!
</div>
<div>
<br>
</div>
<div>
Greets
</div>
<div>
Arndt
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<blockquote type="cite">
<div>
Ticker Berkin <
<a href="mailto:rwb-mkgmap@jagit.co.uk">rwb-mkgmap@jagit.co.uk</a>> hat am 15. Februar 2020 um
</div>
<div>
12:00 geschrieben:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Hi
</div>
<div>
<br>
</div>
<div>
Is this using something based on resources/typ-files/mapnik.txt
</div>
<div>
<br>
</div>
<div>
My guessing of a translation of the error messages you are getting
</div>
<div>
is
</div>
<div>
that TYPviewer defaults the output code-page to 1252 and then
</div>
<div>
doesn't
</div>
<div>
like various strings that can't be represented in that code page.
</div>
<div>
Try uncommenting the line: CodePage=65001
</div>
<div>
<br>
</div>
<div>
Having this line will cause harmless warnings from mkgmap when you
</div>
<div>
generate a non-unicode map
</div>
<div>
<br>
</div>
<div>
Ticker
</div>
<div>
<br>
</div>
<div>
On Sat, 2020-02-15 at 08:44 +0100, Arndt Röhrig wrote:
</div>
<blockquote type="cite">
<div>
Good morning,
</div>
<div>
<br>
</div>
<div>
i use TYPViewer for my typ files. This program reports some
</div>
<div>
errors,
</div>
<div>
when i open a type file.
</div>
<div>
<br>
</div>
<div>
My typs are .txt files. So far they are ok. In a first step i use
</div>
<div>
mkgmap to create .typ files. It runs without error messages. The
</div>
<div>
map
</div>
<div>
seems to be OK. But when i open a typ file with TYPViewer the
</div>
<div>
error
</div>
<div>
messages appear. When i edit an element, TYPViewer pop up an
</div>
<div>
error
</div>
<div>
message and close.
</div>
<div>
<br>
</div>
<div>
i guess the changes in r-4437 do that? Is there something wrong
</div>
<div>
in my
</div>
<div>
typs?
</div>
<div>
For example the polygone 0x0e:
</div>
<div>
<br>
</div>
<div>
[_polygon]
</div>
<div>
Type=0x0e
</div>
<div>
;GRMN_TYPE: Large Manmade Areas/AIRPORT_RUNWAYS/Airport runway
</div>
<div>
area/Non NT
</div>
<div>
String1=0x02,Bürogewerbe
</div>
<div>
ExtendedLabels=Y
</div>
<div>
FontStyle=NoLabel (invisible)
</div>
<div>
CustomColor=No
</div>
<div>
Xpm="0 0 1 0"
</div>
<div>
"1 c #F2D9D8"
</div>
<div>
[end]
</div>
<div>
<br>
</div>
<div>
Greets
</div>
<div>
<br>
</div>
<div>
Arndt
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
P.S. The error message from TYPViewer:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
*****************************************************************
</div>
<div>
****
</div>
<div>
*****************************************************************
</div>
<div>
****
</div>
<div>
************
</div>
<div>
Fehler in der Datei :
</div>
<div>
C:\ProgramData\GARMIN\Maps\Speiche_Fabrik_Gravel.gmap\Speiche.typ
</div>
<div>
*****************************************************************
</div>
<div>
****
</div>
<div>
*****************************************************************
</div>
<div>
****
</div>
<div>
************
</div>
<div>
<br>
</div>
<div>
Unbekannte CodePage-Nummer: 0
</div>
<div>
TYPViewer ersetzte die CodePage mit 1252
</div>
<div>
Wenn dies nicht paßt, wähle eine andere CodePage-Nummer in der
</div>
<div>
Auswahlbox "CodePage"
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x004 SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x00e SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x010 SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x014 SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x01c SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x04e SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des Polygons Type=0x054 SubTypes =
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings der Polylinie Type=0x015 SubTypes
</div>
<div>
=
</div>
<div>
0x00
</div>
<div>
Problem beim Lesen der Strings des POI Type=0x001 SubTypes = 0x00
</div>
<div>
<br>
</div>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
</blockquote>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
</blockquote>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
</blockquote>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
</blockquote>
</body>
</html>