Hi,
I search the internet but I couldn't find a proper answer so I try this way.
I use this code to validate UTF-8 input. I want to allow printable chars and some specified special chars.
$pattern = '/[^\w\.\-\s\,\&\!\?\(\)\+\_\:\;]+$/u';
$status = @preg_match($pattern, $value);
if (($status === false) || ($status > 0)) {
return false;
}
Everything works fine, EXCEPT the input string has at the end a non ascii char (eg. é). Then my validation fails, but it should not. I know it might be a silly mistake, but thanks in advance for every proposal.
best regards