logo separator

[mkgmap-dev] Encoding problems

From Marko Mäkelä marko.makela at iki.fi on Wed Mar 9 12:26:47 GMT 2011

On Wed, Mar 09, 2011 at 01:45:02PM +0200, Rich wrote:
>>    Yep. Changing to
>>    --code-page=1257
>>    fixes Lithuanian letters!
>
>hmm. i might be doing something wrong... but --code-page=1257 with
>mkgmap 1867 still results in garbled latvian characters.

Do you have an example? Can you check the file with a hex editor. For 
example, if you have a string Test*#% that shows up as Test&/!, search 
for "Test" in the img file and show the hexdump. Also, what encoding is 
the input in? UTF-8 like XML? What chars should they be?

You might find the GNU Recode tool useful when diagnosing character set 
translation problems. For example, if your terminal emulator is 
configured to use the UTF-8 encoding, the following should encode your 
input properly, or complain if it cannot be done:

echo 'your utf-8 string'|recode utf8..cp1257|od -t x1

Best regards,

	Marko



More information about the mkgmap-dev mailing list