Opened 7 months ago
Last modified 7 months ago
#21593 new defect
Unicode characters in notes
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core notes | Version: | |
Keywords: | emoticons, unicode | Cc: |
Description
There are notes with non-letter characteres like emoticons as part of the notes. The notes are correctly parsed in web, but not in JOSM. One example is this note: https://www.openstreetmap.org/note/814497
It has a house emoticon.
Attachments (0)
Change History (5)
comment:1 Changed 7 months ago by
comment:2 Changed 7 months ago by
Priority: | minor → normal |
---|
comment:4 Changed 7 months ago by
The emoticon vanishes here josm/trunk/src/org/openstreetmap/josm/gui/widgets/HtmlPanel.java?rev=17299#L100. It's an internal JDK method call, so the parsing needs to be changed.
comment:5 Changed 7 months ago by
So the JEditorPane component used for note rendering utilizes HTML 3.2 (introduced in January 1997). It limits the possibilities and it is the source of the issue.
On StackOverflow, they recommend something JavaFX based solution for HTML rendering, but I think that is too much.
Yes, I can reproduce with latest.
Please, always add your status report to tickets of type defect. It is much easier if we now your JOSM version, java version, operating system, language setup and encoding settings.