I\'m wondering how it\'s possible to \'translate\' characters in UTF-8 to the closest ASCII equivalent using Javascript, just like Iconv doest in PHP.
Example:
ü
The easiest way I've found:
var str = "üó"; var combining = /[\u0300-\u036F]/g; console.log(str.normalize('NFKD').replace(combining, ''));
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize