With a stripos function in javascript, such as:
function stripos (f_haystack, f_needle, f_offset) {
  var haystack = (f_haystack + '').toLowerCase();
  var needle = (f_needle + '').toLowerCase();
  var index = 0;
  if ((index = haystack.indexOf(needle, f_offset)) !== -1) {
    return index;
  }
  return false;
}
How would I use/recode this function so that it matches special characters?
As if:
var haystack = 'Le créme';
var needle   = 'reme';
// ^ these two should match (anything other than false)
 
    