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 Downloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries FreeBSD C++ Libraries HP-UX C++ Libraries BlackBerry QNX C++ Libraries #include <C_CkCharset.h> void ChilkatSample(void) { HCkCharset charset; BOOL success; charset = CkCharset_Create(); // Any string argument automatically begins the 30-day trial. success = CkCharset_UnlockComponent(charset,"30-day trial"); if (success != TRUE) { printf("%s\n",CkCharset_lastErrorText(charset)); return; } // Set the "To" and "From" character encodings: CkCharset_putFromCharset(charset,"shift_JIS"); CkCharset_putToCharset(charset,"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 = CkCharset_ConvertFile(charset,"japanese_shiftJis.txt","japanese_utf8.txt"); if (success != TRUE) { printf("%s\n",CkCharset_lastErrorText(charset)); } else { printf("Success\n"); } CkCharset_Dispose(charset); } |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.