各位高手请进来了,你们看看这个问题应该如何解决呢?
现在我做完了一个繁体版的网站,这里注册了一个组件:ppconvert.dll(用来显示繁体字),在本地的虚拟目录里运行时一切正常,但把它上传到网上时繁体字就显示不出来了。以下是我用的部分代码:
--------------------------------------------------------------------------
<%set gb=server.CreateObject("paopao.convert")
function big5(str)
big5=""
l=len(str)
temp=""
isxiao=0
dim i
for i=1 to l
ch=mid(str,i,1)
if(ch="<") then
big5=big5&gb.gb2big5(temp)
big5=big5&ch
isxiao=1
elseif ch=">" then
big5=big5&ch
temp=""
isxiao=0
elseif isxiao=0 then
temp=temp&ch
else
big5=big5&ch
end if
next
big5=big5&gb.gb2big5(temp)
end function
%>
--------------------------------------------------------------------------
比如,当要将“中国程序员”转换为繁体字时只需这样做就行了:
<%=gb.gb2big5("中国程序员")%>
--------------------------------------------------------------------------
请问各位高手该如何解决这个问题啊??急呀!!!