emka / openstreetbugs

OpenStreetBugs (deprecated)
http://wiki.openstreetmap.org/wiki/OpenStreetBugs
GNU General Public License v3.0
17 stars 5 forks source link

Non-ASCII characters are displayed wrong #12

Closed eliasp closed 15 years ago

eliasp commented 15 years ago

It seems there are some troubles with the used codepage when importing the data from the original openstreetbugs application.

Special chars like umlauts (äöüß etc.) are displayed wrong.

See this permalink for example, where most of the comments are affected: http://openstreetbugs.schokokeks.org/?lon=9.05846&lat=48.52025&zoom=14

emka commented 15 years ago

Which browser are you using? For me (Firefox 3.0.11) encoding in that area looks correct.

eliasp commented 15 years ago

You're right - FF 3.0.11 works just fine.

Konqueror from KDE 4.2.4 has some trouble. I assume it's the encoding autodetection which fails and as there is no header which specifies the encoding, there's no way for Konqueror to determince 100% exactly what encoding it is - FF just does a lucky guess.

Maybe you could add this line to the HTML head (I assume you're using utf-8 - if not, change it accordingly)?

<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

Regards, Elias P.

emka commented 15 years ago

Changed headers (HTML and Javascript) and added meta tag. Seems to work in Konqueror 4.2.2. Please confirm.

eliasp commented 15 years ago

It actually works now - thx a lot for fixing it so quick!

eliasp commented 15 years ago

Oups - forgot closing the bug... doing it now.