character encoding failed unexpectedly

Hi, this is the message which I get when compiling Asia map: character encoding failed unexpectedly There is no other hint, I can't guess which tile gives an error. After this message mkgmap ends execution. I use current mkgmap r3145. My options include: code-page=65001 name-tag-list=name:en,name route housenumbers index Any suggestions? -- Best regards, Andrzej

Hi, I think problem appears at the final stage of creating index, I already have all tiles compiled and overview map created. -- Best regards, Andrzej

Hi, to make mkgmap finish my map, I have added following line in in file Sort.java, function setCodepage: encoder.onMalformedInput(CodingErrorAction.REPLACE); This has suppressed error, but I have no idea, if result is usable. -- Best regards, Andrzej

Hi
this is the message which I get when compiling Asia map:
character encoding failed unexpectedly
I will have to check if that message is meant to mean that the error is not logically possible at that point, in which case there should be an error with a stack trace or if it is really expected that an error can occur there in which case it should be dealt with. Setting the action to replace (as you mention in a later post) could be the correct thing to do in that case.
options include:
code-page=65001
On the other hand this might be just because cp65001 doesn't completely work yet. I would be surprised if the index really worked with cp65001 at the moment, although I am going to resume working on that as soon as I've cleared the outstanding bugs that have been reported over the last few days. ..Steve

Hi Steve, I don't expect fully working Unicode search yet. But for a map with multiple countries there is no good solution. I tried to catch the string, which caused problem. I got '??', when displayed on console. Probably display procedure does replacement too and my java understanding is too weak to add a code for hex dump. -- Best regards, Andrzej
participants (2)
-
Andrzej Popowski
-
Steve Ratcliffe