Opened 9 years ago

Closed 9 years ago

#3031 closed defect (fixed)

Some object names are rendered with broken unicode

Reported by: AMDmi3 Owned by: osm@…
Priority: major Milestone:
Component: osmarender Version:
Keywords: unicode encoding utf Cc:

Description

Some objects with russian names are rendered with broken unicode in osmarender.

Examples (see in osmarender): http://www.openstreetmap.org/browse/way/23456790 http://www.openstreetmap.org/browse/way/42239344 http://www.openstreetmap.org/browse/way/44142114

these objects are not numerous, other names are rendered correctly; mapnik renders these names correctly; deleting and then re-adding name (to ensure there're no strange symbols) doesn't affect the problem.

The nature of corruption is that utf-8 string containing name is converted from iso8859-1 to utf-8, thus

Стадион "Красная Стрела" becomes СÑадион "ÐÑаÑÐ½Ð°Ñ Ð¡ÑÑела"

and that's what is rendered on map.

Change History (2)

comment:1 Changed 9 years ago by osm@…

Status: newassigned

This happened due to the change in multipolygon handling in r21278. Bascially the copying of tags from ways to relations is not UTF-8 safe. Finding this did cost me several days of hard work. There are two fixes for this: Tag the relation instead of the way, or wait till I submit the patch to osmarender. I do have a working patch but that makes the code look quite horrible. I'll try to come up with a nicer way or applied the ugly patch if it takes too long.

comment:2 Changed 9 years ago by petschge

Resolution: fixed
Status: assignedclosed

(In [21629]) Change the way tags are copied from ways to relations. The old way is not UTF8 save but I don't understand why. Fixes #3031

Note: See TracTickets for help on using tickets.