VB中自带这样的函数吗??
中英文用标符的处理方法也是一样吗??
望高手详细指教!!谢!!
我的意思是分两个。
1)。GB2312 转UTF-8 UTF-8还原GB2312 它们转换及还原的函数是怎样??
2)如以下两个,是用字符转换工具按[十六进制]转出来的。怎么变成这样??
编程论坛=0x7F16,0x7A0B,0x8BBA,0x575B,
0123456789=0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,
utf-8-->gb2312函数
<% Function Utf8_Gb2312(Searchstring) Dim Seachchar1, Seachchar2, MyPos1, MyPos2, string1, string2, i, Output_content Seachchar1 = "&#x" Seachchar2 = ";" While InStr(Searchstring, "&#x") <> 0 i = i + 1 '定义i MyPos1 = InStr(Searchstring, Seachchar1) + Len(Seachchar1) string1 = Left(Searchstring, MyPos1 - 1) Searchstring = Replace(Searchstring, string1, "", 1, 1) MyPos2 = InStr(Searchstring, Seachchar2) - Len(Seachchar2) string2 = Left(Searchstring, MyPos2 + Len(Seachchar2) - 1) Searchstring = Replace(Searchstring, string2, "", 1, 1) Output_content = Output_content + ChrW(CInt("&H" & string2)) Wend Utf8_Gb2312 = Output_content End Function %>
[此贴子已经被作者于2005-3-28 8:35:49编辑过]
[此贴子已经被作者于2005-3-28 8:43:22编辑过]