I have a result string that sometimes contains non ascii values. These non ascii values cause problems, so I need to check their presence in the result line.
I tried with these two methods
if (regexpi(result , ^\s\x{20}-\x{7e}))
display('non ascii');
end
and
if any(result < 128)
else
display('non ascii');
end
but it didn’t work. Any help is appreciated.
klijo source
share