我是这样写的
dim charcount
charcount = 0
for i=1 to len(News_Content)+1 step 1
if asc(mid(News_Content,i,1))<0 or asc(mid(News_Content,i,1))>128 then
charcout = charcount+1
end if
next
去html
<%
xx="<html><head><title>asdasd</title></head><body>ddd111111</body></html>"
function RemoveHTML(fString)
dim re
set re = New RegExp
re.Global = True
re.IgnoreCase = True
're.MultiLine = True
if not isnull(fString) then
re.Pattern = "<a(.[^>]*)a>"
fString = re.Replace(fString,"")
RemoveHTML = fString
end if
end function