Opened 3 years ago
Closed 2 years ago
#21593 closed defect (othersoftware)
Unicode characters in notes
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core notes | Version: | |
Keywords: | emoticons, unicode, javabug | 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 (7)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Priority: | minor → normal |
---|
comment:4 by , 3 years ago
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 by , 3 years ago
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.
comment:6 by , 2 years ago
It looks like it is working in Java 19 (Mac), and I suspect it works in Java 18.
See https://openjdk.org/jeps/400 (Java 18).
comment:7 by , 2 years ago
Keywords: | javabug added |
---|---|
Resolution: | → othersoftware |
Status: | new → closed |
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.