Gubaer / josm-scripting-plugin

Task automation in the OpenStreetMap editor JOSM
https://gubaer.github.io/josm-scripting-plugin
GNU General Public License v3.0
26 stars 9 forks source link

Accentued characters not supported when invoked from script file (éèàê) #76

Closed bagage closed 6 years ago

bagage commented 6 years ago

It seems that the plugin does not handle utf-8 strings properly? When you use josm.alert("é"); in the scripting console, it displays properly é on the screen, however if you save it in a file test.js and launch it via Scripting -> Run, you end up with:

image

Gubaer commented 6 years ago

Published plugin release 30793. Please update the plugin in JOSMs preferences dialog.

Thanks, @floscher, for the patch!

bagage commented 6 years ago

Thanks @floscher and @Gubaer for the super fast fix and release!