![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Classic ASP) Example: Crypt2.EncodeString methodDemonstrates how to call the EncodeString method.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <% set crypt = Server.CreateObject("Chilkat.Crypt2") s = "Hello World" Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"utf-8","hex")) & "</pre>" ' Output: 48656C6C6F20576F726C64 Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"utf-16","hex")) & "</pre>" ' Output: 480065006C006C006F00200057006F0072006C006400 Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"utf-8","base64")) & "</pre>" ' Output: SGVsbG8gV29ybGQ= s = "électricité" Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"utf-8","hex")) & "</pre>" ' Output: C3A96C6563747269636974C3A9 Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"windows-1252","hex")) & "</pre>" ' Output: E96C6563747269636974E9 Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"windows-1252","hex_lower")) & "</pre>" ' Output: e96c6563747269636974e9 Response.Write "<pre>" & Server.HTMLEncode( crypt.EncodeString(s,"utf-8","url")) & "</pre>" ' Output: %C3%A9lectricit%C3%A9 %> </body> </html> |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.