Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
|
File-to-File Character Encoding ConversionConvert a text file from one character encoding to another.
The source/destination charset may be any of the following:
The source/destination charset may be any of the following: us-ascii LOCAL loCharset LOCAL lnSuccess loCharset = CreateObject('Chilkat.Charset2') * Any string argument automatically begins the 30-day trial. lnSuccess = loCharset.UnlockComponent("30-day trial") IF (lnSuccess <> 1) THEN ? loCharset.LastErrorText QUIT ENDIF * Set the "To" and "From" character encodings: loCharset.FromCharset = "shift_JIS" loCharset.ToCharset = "utf-8" * To do file-to-file conversion, call ConvertFile. * The shift_JIS sample file is downloadable from this URL: * http://www.chilkatsoft.com/testData/japanese_shiftJis.txt lnSuccess = loCharset.ConvertFile("japanese_shiftJis.txt","japanese_utf8.txt") IF (lnSuccess <> 1) THEN ? loCharset.LastErrorText ELSE ? "Success" ENDIF |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser