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 €
code in autonumeric options, did not solve problem, show € 123,00
in field input
$('#import').autonumeric('init', { asep: '.', adec: ',', vmin: '-999999999.99', vmax: '999999999.99', asign: '€' // tried '€' });
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
Post a Comment