I have enabled people to enter international characters using JS, but am unable to replicate it in PHP.
This Validates
if (!fieldVal.match(/^[\w\d\xC0-\xD6\xD8-\xF6\xF8-\xFF&_@#\.?!:;,\/\(\)\'’ -]+$/))
innerVal = "Only letters, numbers, underscores, dashes, and punctuation may be used.";
This Does Not
if (!preg_match("/^[\w\xC0-\xD6\xD8-\xF6\xF8-\xFF\d&_\.?!@#:;,\/\(\)'’ -]+$/",$thevalue))
return "Bad";
else
return "Good";