[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] Incorrect encoding with .tag file
|
When I put non ascii letters in a .tag file, those letters are not correctly encoded.
My application runs on jetty 8.1.4.
If a .tag file contains `é`, it will appears in the resulting HTML page as `é`.
When I put the same letter in a JSP file, it gets correctly displayed. If I pass the same character as a parameter to the tag, it gets correctly displayed.
The encoding of the .tag file is UTF-8. The result page is also encoded in UTF-8. I've the same problem when running the application from Eclipse on ubuntu, or when deploying the tag in a jar on a debian server.
I've checket the .tag file, and the `é` is correctly encoded as C3 A9.
I checked the java file generated by jetty for the tag, and the `é` get transformed into :
out.write('Ã');
out.write('©');
When viewed in hex, the à is C3 83 and the © is C2 A9, which is exactly what I receive in the browser.
So it looks like the encoding is wrong when the tag is precompiled into the java class.
Can I force the encoding at the compilation step, or specify the encoding in the .tag file ?
Thanks in advance for your response.
Olivier Bourgain