Classic ASP
Classic ASP
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set crypt2 = Server.CreateObject("Chilkat.Crypt2")
' The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
encodedStr = "SGVsbG8gV29ybGQ="
encoding = "base64"
charset = "utf-8"
str = crypt2.DecodeString(encodedStr,charset,encoding)
Response.Write "<pre>" & Server.HTMLEncode( str) & "</pre>"
' Output is "Hello World"
%>
</body>
</html>