[OSM-dev] JOSM/OSM Charset problems

Immanuel Scholz immanuel.scholz at gmx.de
Thu Jun 22 10:14:43 BST 2006


Hi,

sorry for not replying for so long - I had much to do at work (and will
have 'till next month). But more time lurks at the horizon in July (yipie!
;)


> ** JOSM (reading the code) :
> - XML send to the server specify "<?xml version='1.0'
> encoding='UTF-8'?>", but in fact JOSM encode the stream in the plateform
> default charset (ISO-8859-1 in my case)

Yea, this is (was) a known bug. I tried some really scary thing to convert
the stuff to UTF-8 within the html-encoding procedure but failed. I didn't
thought of your easy way. Thanks alot ;-)



> If I modify JOSM to send UTF-8 and read ISO-8859-1, everything works for
> me (but will not for characters outside of ISO-8859-1 I suppose). My
> patch (very simple) is attached below.

I will apply your patch for the UTF export today evening (when I'm at home
again).

For the other direction, I'd rather like to have the server speak UTF-8
correctly.


Ciao, Imi





More information about the dev mailing list