![]() |
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
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 <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <% set charset = Server.CreateObject("Chilkat.Charset2") ' Any string argument automatically begins the 30-day trial. success = charset.UnlockComponent("30-day trial") If (success <> 1) Then Response.Write "<pre>" & Server.HTMLEncode( charset.LastErrorText) & "</pre>" 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 Response.Write "<pre>" & Server.HTMLEncode( charset.LastErrorText) & "</pre>" Else Response.Write "<pre>" & Server.HTMLEncode( "Success") & "</pre>" End If %> </body> </html> |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.