Is it possible to convert characters like ñ, á, é etc to normal English/Latin characters?
ñ should return n
á should return a
é should return e
etc
Is it possible to convert characters like ñ, á, é etc to normal English/Latin characters?
ñ should return n
á should return a
é should return e
etc
Use replace and Regex
var str = "ñ á é ";
undefined
var res = str.replace("ñ", "n").replace("á", "a").replace("é", "e");
undefined
console.log(res);
Yes you can with replace method. for example
var string = "Buenos días.";
var new_string = string.replace('í', 'i');
console.log(new_string)
if you want to add more character you can add another .replace method in end of new_string.