Closed GoogleCodeExporter closed 9 years ago
You are messing around with encodings. If you want the accent characters to
render properly everywhere you need the entire response to be "UTF-8".
"ISO-8859-1" sucks and can only handle the basic characters.
Original comment by hielke.hoeve
on 26 Nov 2013 at 8:50
I agree that ISO-8859-1 sucks, but that's not the point. The JS file you serve
for the DatePicker is encoded using UTF-8, so you should specify the encoding
while serving the file, otherwise it falls back to the request cycle default
encoding which might not be UTF-8.
Original comment by mathieu....@gmail.com
on 26 Nov 2013 at 2:06
Which JS file you mean?
Original comment by reier...@gmail.com
on 26 Nov 2013 at 2:35
The file that is behind the DatePickerLanguageResourceReference.
In DatePicker.java, you add a JS reference to the header.
DatePickerLanguageResourceReference dpl =
DatePickerLanguageResourceReference.get(getLocale());
if (dpl != null)
response.render(JavaScriptHeaderItem.forReference(dpl));
Adding this file using a UTF-8 encoding solve the problem:
response.render(JavaScriptHeaderItem.forReference(dpl, null, null, false,
"UTF-8"));
Original comment by mathieu....@gmail.com
on 26 Nov 2013 at 5:04
Original issue reported on code.google.com by
mathieu....@gmail.com
on 21 Feb 2013 at 6:15Attachments: