How do I remove accentuated characters from a string? Especially in IE6, I had something like this:
accentsTidy = function(s){
var r=s.toLowerCase();
All the above isn't working with decomposed character as used on Mac OS. In order to remove diacritics in that case it is more simple :
r = r.replace(new RegExp(/[\u0300-\u036f]/g),"")
see comment from Olivier Miakinen on : https://groups.google.com/d/msg/fr.comp.lang.regexp/6IGJTbedGTM/G0sB2kAsR34J (posted in french)