[OSM-dev] Mapnik, Japanese characters?
AJ Ashton
aj.ashton at gmail.com
Wed Sep 7 15:47:12 BST 2011
On Wed, Sep 7, 2011 at 10:23 AM, <marqqs at gmx.eu> wrote:
> I'm using Mapnik to render a thematic map. Latin and Cyrillic characters are displayed properly but Japanese are not:
> http://openptmap.org/?zoom=14&lat=35.68025&lon=139.76767&layers=0000BTFT
Does your stylesheet use a font that supports Japanese characters? If
not you should find a font that does and set it as a fallback using
Mapnik's fontset feature [1].
If it's not a problem with your font, likely the character encoding is
set incorrectly in the database, or is being set incorrectly somewhere
in the rendering pipeline. You should check that the database was
imported as UTF-8, and that the encoding is not being set to something
else in the Mapnik XML.
[1]: http://trac.mapnik.org/wiki/FontSet
More information about the dev
mailing list