is_utf8(str)
Determines whether the string str contains only characters encoded in UTF-8.
str
> SELECT a, is_utf8(a) FROM VALUES (""), ("abcd"), ("中文"), (",。") AS t(a); true abcd true 中文 true ,。 true