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
js代码 function encode64(input) { var output = ""; var base = new Base64(); var output = base.encode(input); return output; } function Base64() { // private property _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=