Convert GB2312 encoded Chinese characters to ISO encoding

xiaoxiao2021-03-06  111

Function strconv (Byval Strin, Byval Encoding) DIM St: set st = server.createObject ("AdoDb.Stream") st.type = 2 st.open st.writetext strin st.position = 0 st.charset = encoding strconv = ST .Readtext (-1) st.close set st = nothingend function

Response.write strconv ("Hello!", "ISO-8859-1")

转载请注明原文地址:https://www.9cbs.com/read-125590.html

New Post(0)