tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
937 stars 132 forks source link

Text (editor) field at overpass-turbo.eu does not work correctly #374

Open sommerluk opened 6 years ago

sommerluk commented 6 years ago

Text (editor) field at overpass-turbo.eu does not work correctly

Steps to reproduce:

Expected behaviour: the character 𠮹 is deleted.

Actual behaviour: a strange character appears at the place of the character 𠮹.

I guess this has something to do with an UTF-16 decoding gone wrong somewhere?

Note: In JOSM, when downloading data using an overpass-turbo query, the text editing works fine.

mmd-osm commented 6 years ago

Seems like an upstream issue in the CodeMirror syntax highlighting library. You can deactivate CodeMirror via Settings -> Editor -> Deactivate CodeMirror in the meantime.

tyrasd commented 6 years ago

CodeMirror

yes, but newer versions don't have this bug anymore. I tried upgrading, but it looks a bit complicated with our current setup (es6 modules + webpack). For example, I couldn't get the multiplexingMode addon to work in the newest version of CodeMirror included via webpack. :unamused:

pyrog commented 4 years ago

No issue under Safari, but I could reproduce it under Chrome.

With Firefox, the square appear broken when the source is pasted:

Firefox screen copy