Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Convert utf-8 to ANSI
C++ to convert a utf-8 string to ANSI. char *Utf8ToAnsi(const char *utf8)
{
CkString str;
str.appendUtf8(utf8);
const char *ansi = str.getAnsi();
char *retval = new char[str.getSizeAnsi() + 1];
strcpy(retval,ansi);
return retval;
}
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.