Unicode C++
Unicode C++
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat Unicode C++ Downloads
#include <CkCrypt2W.h>
void ChilkatSample(void)
{
CkCrypt2W crypt2;
// The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
const wchar_t *encodedStr = L"SGVsbG8gV29ybGQ=";
const wchar_t *encoding = L"base64";
const wchar_t *charset = L"utf-8";
const wchar_t *str = crypt2.decodeString(encodedStr,charset,encoding);
wprintf(L"%s\n",str);
// Output is "Hello World"
}