Making that little test script worked.
function test($thevalue)
{
if (!preg_match("/^[\w\xC0-\xD6\xD8-\xF6\xF8-\xFF\d&_\.?!@#:;,\/\(\)'’ -]+$/",$thevalue))
return "Bad";
else
return "Good";
}
echo test('Jørgen Wærner'); // result: "Good"
However I put back my function and did this
function checkGeneric($thevalue)
{
if (!preg_match("/^[\w\xC0-\xD6\xD8-\xF6\xF8-\xFF\d&_\.?!@#:;,\/\(\)'’ -]+$/",$thevalue)) {
die("Bad match for '$thevalue'");
return "Bad";
}
else
return "Good";
}
which died saying Bad match for 'Jørgen Wærner'
So it clearly got the same value. This causes some confusion here