GO CREATE FUNCTION [dbo].[c_GetUTF8Code] ( @char Nchar ) RETURNS int AS --UTF8转码 BEGIN Declare @Code int Select @Code=Cast(Unicode(@char) as int) Declare @Utf8Code int ) begin --0-127 --0000-007F --0xxxxxxx --01100010 Unocide --01100010 UTF-8 Set @Ut