Skip to main content

Search and Top Navigation

#8648 closed bug (wontfix)

Opened October 10, 2012 01:40PM UTC

Closed October 10, 2012 02:43PM UTC

jquery-ui datepicker displays wrong characters when document charset is ISO8859-1

Reported by: pk Owned by:
Priority: minor Milestone: 1.9.1
Component: ui.datepicker Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:

$.datepicker.regional['fr'] assumes that DOCTYPE CHARSET is UTF8 ....

I use "legacy" database entries that are ISO8859-1 and wrong characters are displayed...

I believe that jquery-ui localised settings should not be charset dependant.

I have modified the settings replacing accent characters with there html entities and it works fine...

(i.e "é" is replaced by "é" )

could you integrate the changes for the next release?

/* Pascal KISSIAN : htmlentities for accents */

/* French initialisation for the jQuery UI date picker plugin. */

/* Written by Keith Wood (kbwood{at},

Stéphane Nahmani (,

Stéphane Raimbault <> */


$.datepicker.regional['fr'] = {

closeText: 'Fermer',

prevText: 'Précédent',

nextText: 'Suivant',

currentText: 'Aujourd\\'hui',

monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',


monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin',


dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],

dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],

dayNamesMin: ['D','L','M','M','J','V','S'],

weekHeader: 'Sem.',

dateFormat: 'dd/mm/yy',

firstDay: 1,

isRTL: false,

showMonthAfterYear: false,

yearSuffix: ''};



BTW, all regional settings of all widgets should be html coded...

Attachments (0)
Change History (1)

Changed October 10, 2012 02:43PM UTC by scottgonzalez comment:1

component: ui.coreui.datepicker
resolution: → wontfix
status: newclosed

It's much more sane to use UTF-8. We intentionally removed all HTML encoding. If you want your page to render with ISO8859-1, you can probably just set the encoding on the JS files.