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
Using CkString in ANSI ModeDownloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries Demonstrates how to use the CkString class in ANSI mode. CkString str; // Use the CkString class in ANSI mode. // When in ANSI mode, all "const char *" input arguments // are expected to be ANSI strings. str.put_Utf8(false); str.append("Je peux manger du verre, a ne me fait pas de mal."); // Save the string as ANSI, utf-8, or Unicode. str.saveToFile("utf8.txt","utf-8"); str.saveToFile("ansi.txt","ansi"); str.saveToFile("unicode.txt","unicode"); // Chilkat recommends using the EmEditor by EmuraSoft for editing // text in any character encoding.
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.