encoding - jQuery autoNumeric plugin replace euro sign with question mark -


i'm using autonumeric, jquery plugin automatically formats currency. works fine, euro sign (€) replaced question mark (�).

i have read this , this, not seems encoding problem couse i'm using following meta tags on page:

<meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> 

also replacing exotic characters html friendly such &euro; code in autonumeric options, did not solve problem, show &euro; 123,00 in field input

$('#import').autonumeric('init', {         asep: '.',         adec: ',',         vmin: '-999999999.99',         vmax: '999999999.99',         asign: '€' // tried '&euro;'     }); 

if replace euro sign dollar sign (asign: '$') works fine!

thanks in advance

the problem might due character encoding mismatch (refer)

use unicode value .

asign : '\u20ac' 

$('#import').autonumeric('init', {     asep: '.',     adec: ',',     vmin: '-999999999.99',     vmax: '999999999.99',     asign : '\u20ac' }); 

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -