以前在GB2312编码下正常的字符截断函数在UTF-8下无效了
哪位高手有解决方案啊,ASP vbs
function MyCutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
mycutstr=left(tempstr,tempwid)&"..."
else
mycutstr=tempstr
end if
end function比如上面这个函数,直接给tempwid数字,有效
但是通过参数传递就没有用了
哪位高手有解决方案啊,ASP vbs
function MyCutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
mycutstr=left(tempstr,tempwid)&"..."
else
mycutstr=tempstr
end if
end function比如上面这个函数,直接给tempwid数字,有效
但是通过参数传递就没有用了
试试