logo separator

[mkgmap-dev] Far-east asia character encoding

From Tan, Eng Ten tanengten at yahoo.com on Tue Jul 20 02:53:28 BST 2010

Sorry I don't have a Japanese Garmin to test with. I was just using GPSMapEdit 
on English Windows with Japanese fonts installed.

Maybe we shouldn't check the code in until it's verified to work on Garmin 


From: Steve Ratcliffe <steve at parabola.me.uk>
To: mkgmap-dev at lists.mkgmap.org.uk
Sent: Tue, 20 July, 2010 7:04:15 AM
Subject: Re: [mkgmap-dev] Far-east asia character encoding


> I dont know if this has been raised before but even mkgmap-1655 could
> not produce an .IMG with proper Japanese character encoding.

Do you have a Garmin unit that displays Japanese characters?  It would 
be great to get this working, but I've never had any way of testing it.

> I see the code assumes ENCODING_FORMAT9 when the specified --charset
> falls into the "any" category. The function
> CodeFunctions.guessCodePage() is also rather limited.
> To get an .IMG with the correct Japanese encoding, the correct settings
> are: ENCODING_FORMAT10 img encoding / Codepage 932 / SJIS/MS932
> character encoding.
> I've added this IF-block into CodeFunctions.createEncoderForLBL():
> } else if ("sjis".equals(charset) || "ms932".equals(charset)) {
> funcs.setEncodingType(ENCODING_FORMAT10);
> funcs.setEncoder(new AnyCharsetDecoder(charset));
> funcs.setCodepage(932);
> }

Yes you need to stop it falling into the Any case, so that looks like 
the correct change to make.

So is it the case that this change is working and ready to be committed?


mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20100719/f1170d3d/attachment.html 

More information about the mkgmap-dev mailing list