Friends a query, I'm working with bootstrap and I call a modal, send a comment a strange character appears

0

So I send and call my modal from jquery ....

$('#modalcontenidodos').text("Este DNI ya tiene un usuario y contraseña.");                           
$('#mymodaldos').modal('show');

but I get a strange character in the modal as well .....

  

This DNI already has a username and password.

    
asked by Juan Seferino 31.08.2018 в 00:13
source

2 answers

1

You must define in your html in the META part the encoding you are going to use.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    
answered by 31.08.2018 в 00:20
0

Instead of putting ñ, put the HTML code: &ntilde;

    
answered by 31.08.2018 в 13:08