How to check if string contains Unicode characters?
Hi,
How to check if data string contains Unicode characters?
Thanks
Product version: IRIS 2021.1
Discussion (3)1
Comments
if $ziswide(string) { write "Yes" } else { write "No" }Thanks
By the way, if you ever have to check, if a string does contain ASCII chars only (0x00 - 0x7F), there is a simple trick:
if $zconvert(string,"O","UTF8")=string { write "7bit only" } else { write "chars with 8 or more bits" }