I\'m searching for javascript function to replace French diacritics and came accross this code:
String.prototype.removeDiacritics = function() {
var diacriti
Those three digit numbers are in octal, so if you take the unicode value of ÿ and convert it to octal, which is 377, you will be able to add it to the list:
var diacritics = [
// Your other values...
[/[\377]/g, 'y'],
// ...
];
Here is a good site to look up the octal values of characters:
octal values of characters