<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi Ticker,
</div>
<div>
<br>
</div>
<div>
with CodePage=65001 mkgmap will not build a typ file.
</div>
<div>
SCHWERWIEGEND (MapFailedException): .\Daten\Speiche_schmal.txt: (thrown in TypCompiler.makeMap()) Compiling TYP txt file: Error: (.\Daten\Speiche_schmal.txt:3): Bad character in input, file probably not in UTF-8
</div>
<div>
<br>
</div>
<div>
When i convert the .txt file to UTF-8 it works, but when i open the typfile with TYPViewer, codepage is set to 1252 and the same error messages appaer. I try --code-page=65001 as a option with mkgmap and as a line in the typfile.
</div>
<div>
<br>
</div>
<div>
I can open the .txt wit TYPViewer without errors. When i convert the .txt to .typ with TYPViewer all is OK. Converting the .txt to .typ with mkgmap r-4428 its OK too. Something happend since r-4437, so that the TYP is incompatible to TYPViewer. BaseCamp and my Oregon600 have no problems with the typ.
</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 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 is
</div>
<div>
that TYPviewer defaults the output code-page to 1252 and then 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 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 map
</div>
<div>
seems to be OK. But when i open a typ file with TYPViewer the error
</div>
<div>
messages appear. When i edit an element, TYPViewer pop up an error
</div>
<div>
message and close.
</div>
<div>
<br>
</div>
<div>
i guess the changes in r-4437 do that? Is there something wrong 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>
Fehler in der Datei :
</div>
<div>
C:\ProgramData\GARMIN\Maps\Speiche_Fabrik_Gravel.gmap\Speiche.typ
</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>
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>
</body>
</html>