java - UTF-8Characters not displayed correctly in -


we working on project school, project mandatory tri-lingual (dutch, english , french) , answer "change english not do".

all our classes , resource files encoded in utf-8 format, , alle non-standar english characters diplayed correctly in classes themself.

the problem once try display our text, alle non-standard english characters distorted.

we hear alot due encoding issue, sincerly doubt that, since our whole project encode in utf-8.

here extract french resource bundle:

videosettings = réglages du vidéo soundsettings = réglages du son keybindsettings = keybind paramètres languagesettings = paramètres de langue difficultysettings = paramètres de difficulté exitsettings = sortie les paramètres 

and results in these following displayed strings.

display result provided resourcebundle extract

i gratefull solution problem

edit

for info building desktop app using swing.

you didn't show code, read resource files. if use propertyresourcebundle inputstream in constructor, inputstream must encoded in iso-8859-1. in case, characters cannot represented in iso-8859-1 encoding must represented unicode escapes.

you can use native2ascii or anyedit tools convert properties unicode escapes, see use cyrillic .properties file in eclipse project


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -