javascript - UTF-8 characters in datepicker -


i'm using datapicker utf8 characters displaying wrong in html décembre or août . files (.jsp & .js) saved utf-8.

$( "#datepicker" ).datepicker({   //...  monthnames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août',                'septembre', 'octobre', 'novembreé', 'décembre'],  //... });  

also set this:

<head>     <meta charset="utf-8">     <script  src="${pagecontext.request.contextpath}/resources/js/calendar.js"  charset="utf-8"></script>                <script  src="${pagecontext.request.contextpath}/resources/js/datepicker.js"  charset="utf-8"></script>      

try setting utf-8 in script tag example:

<script src="/explorer/html/js/datepicker/locales/bootstrap-datepicker.fr.js" charset="utf-8"></script> 

i'm using boostrap datepicker , works fine.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -