function uni2gb(str)
dim tmp,tmpstr,i
tmpstr=""
for i=1 to Len(str)
tmp=Mid(str,i,1)
if tmp="&" and Mid(str,i+1,1)="#" and Mid(str,i+7,1)=";" then
tmpstr=tmpstr&ChrW(Mid(str,i+2,5))
i=i+7
else
tmpstr=tmpstr&tmp
end if
next
uni2gb=tmpstr
end function