Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Some object names are rendered with broken unicode #3031

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments
Closed

Some object names are rendered with broken unicode #3031

openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: AMDmi3
[Submitted to the original trac issue database at 7.27am, Wednesday, 2nd June 2010]

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.

@openstreetmap-trac
Copy link
Author

Author: osm[at]petschge.de
[Added to the original trac issue at 2.09pm, Wednesday, 9th June 2010]

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.

@openstreetmap-trac
Copy link
Author

Author: petschge
[Added to the original trac issue at 7.29pm, Wednesday, 9th June 2010]

(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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant