简体   繁体   中英

Detecting UTF-8 in SQL Server

I have this method in C#:

public static int HasUniCodeCharacter(string text)
{
    return Convert.ToInt32(Regex.IsMatch(text, "[^\u0000-\u00ff]"));
}

I want know, If I want have a function in SQL for doing this method job, How I should write this?

I have this method in C#:

public static int HasUniCodeCharacter(string text)
{
    return Convert.ToInt32(Regex.IsMatch(text, "[^\u0000-\u00ff]"));
}

I want know, If I want have a function in SQL for doing this method job, How I should write this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM