-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding UTF-8 not well supported for jnlp(xml) file on Windows #190
Comments
just tried with Oracle jre1.8.0_201 wich handle desktop and startmenu file name correctly "Version title é" |
This has for effect to break clearing from shortcuts wich looking for file with utf-8 char but dont find it
|
It do not look right - the jnlp file vendor looks weird: e and a ? Really? Maybe server is changing the encoding on the fly. Generally if there is any other encoding then utf8 anywhere in Icedtea-web code, then it is wrong. |
Yes, the file is weird voluntarily (accent letters) to show that UTF-8 char are not handled properly
No
and you can read http header too, it dont indicate any encoding
|
Played around a bit with the jnlp file on windows and found that the characters you see depend on the encoding used when saving the jnlp file on your machine. On my windows machine I start your app using the URL https://apoweb-preprod-integration.phmd.net/preprod_integration/version.jnlp. On my machine version.jnlp is saved in UTF-8 format and I see the proper name with accented character for Desktop Icon and start menu entry. However, if I open the jnlp file and save it after encoding it in ANSI and removing the href (so that it will not download the jnlp file from server) then I get the funny character in desktop Icon : |
@douph1 did the last message help you to solve the problem? If yes, we would close this issue. |
I had saved it correctly in UTF-8 (vim linux user here). |
see the original sample |
Just tested master branch and the encoding bug seems fixed for the next 2.0.0 |
I have some strange char on Windows into Desktop shortcut, Windows Menu and Splas screen due to somme non ascii char in jnlp
For the demo purpose I have added
é
è
andà
in some xml attributSample jnlp:
https://apoweb-preprod-integration.phmd.net/preprod_integration/version.jnlp
This jnlp display a JFrame with java version information.
No content-type return by the web server:
< HTTP/1.1 200 OK
< Date: Thu, 18 Apr 2019 14:20:41 GMT
< Server: Apache-Coyote/1.1
< Accept-Ranges: bytes
< ETag: W/"759-1555596356000"
< Last-Modified: Thu, 18 Apr 2019 14:05:56 GMT
< Content-Type: application/x-java-jnlp-file
< Content-Length: 759
And jnlp file begin with UTF-8 :
<?xml version="1.0" encoding="UTF-8"?>
Desktop shorcut name create is called :
Version title é (Version).lnk
Idem for StartUp menu :
Uninstall Version title é.lnk
and we can see the accented char are not well displayed in Splas screen too
PS: on Linux, the Shorcut name is good ( with accent )
The text was updated successfully, but these errors were encountered: