IS_UTF8

is_utf8(str)

功能

判断str是否只包含utf-8编码的字符

参数

  • str: string

返回结果

boolean

举例

> select a, is_utf8(a)
  from values (""),
  ("abcd"),
  ("中文"),
  (",。") as t(a);
        true
abcd    true
中文    true
,。    true

联系我们
预约咨询
微信咨询
电话咨询