ASP Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

ASP Examples

ASP String
ASP Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar
ASP Upload
XML
XMP
Zip Compression

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

Convert utf-8 to Shift_JIS

Download Chilkat Charset ActiveX

ASP example code to load a utf-8 text file, convert it to Shift-JIS, and display it in a Japanese ASP page.

<html>

<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=Shift_JIS">
<title>Send Japanese Email</title>
</head>

<body bgcolor="#FFFFFF">
<%

set cc = Server.CreateObject("Chilkat.Charset2")

' Any value passed to UnlockComponent begins the 30-day trial.
cc.UnlockComponent "30-day trial"

utf8Data = cc.ReadFile("C:/temp/utf8JapaneseSample.txt")

cc.FromCharset = "utf-8"
cc.ToCharset = "Shift_JIS"

Response.BinaryWrite cc.ConvertData(utf8Data)

%>
</body>
</html>
 

© 2000-2012 Chilkat Software, Inc. All Rights Reserved.