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 Conversion
Convert 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 Dim charset As New ChilkatCharset2 ' Any string argument automatically begins the 30-day trial. Dim success As Long success = charset.UnlockComponent("30-day trial") If (success <> 1) Then Text1.Text = Text1.Text & charset.LastErrorText & vbCrLf Exit Sub End If ' Set the "To" and "From" character encodings: charset.FromCharset = "shift_JIS" charset.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 success = charset.ConvertFile("japanese_shiftJis.txt","japanese_utf8.txt") If (success <> 1) Then Text1.Text = Text1.Text & charset.LastErrorText & vbCrLf Else Text1.Text = Text1.Text & "Success" & vbCrLf End If |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.