[mkgmap-dev] unicode
From Steve Ratcliffe steve at parabola.me.uk on Thu Feb 28 15:38:51 GMT 2013
Hi > At least getting unicode into street names turned out to be easy: > I brutally patched the code to use the codepage 65001 and put UTF-8 > bytes for “äαЯب” into the code, i.e. German, Greek, Cyrillic and Arabic, > which is usually contained in four codepages (1250, 1253, 1251, 1256). > The street names show up with these four characters at the same time. > Yeah! Wonderful, well done. > I can’t program Java, so: > - I don’t see the reason why the Utf8Encoder encodeText() seemingly > results in ASCII instead of UTF-8. Because the default transliterator is an ascii one, you have to explicitly set eg NullTransliterator. With that change your patch seems to work, I did a little test with your test string on my Etrex 30 and it turns out that it was supported. I'll commit your patch with the added null transliterator. Do you think from your research that it is likely that any device that supports unicode maps, will also support lower case? If so then we can also set that by default. ..Steve
- Previous message: [mkgmap-dev] unicode
- Next message: [mkgmap-dev] unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list