_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › URLEncoding
|
|
Describe URLEncoding here
CREATE FUNCTION dbo.UrlEncode(@url varchar(1024)) RETURNS varchar(3072) AS BEGIN DECLARE @count int, @c char(1), @i int, @urlReturn varchar(3072) SET @count = Len(@url) SET @i = 1 SET @urlReturn = '' WHILE (@i <= @count) BEGIN SET @c = substring(@url, @i, 1) IF @c LIKE '[A-Za-z0-9()''*-._! ]' BEGIN SET @urlReturn = @urlReturn + @c END ELSE BEGIN SET @urlReturn = @urlReturn + '%' + SUBSTRING(sys.fn_varbintohexstr(CAST(@c as varbinary(max))),3,2) END SET @i = @i +1 END RETURN @urlReturn END GO
鏤
|
轟 螳 蠍語 轟 蟇磯 襷れ伎 襷. 轟 螳 蠍語 覿覈覃 蠍郁瑳 螻 讌襦 蠏 蠍語 螳. 轟 轟 螳 蠍語 覲伎伎 る 覃豢 螳 襯 豢螻り骸 . 襷 轟 螳 蠍語 企 レ覓殊 覃 螳 螳襴る 蠍語 磯 轟 螳 螻滑讌 譟一 螳. (磯襴一) |