Unicode version of base64 encoding/ decoding
- by Yan Cheng CHEOK
I am using base64 encoding/decoding from http://www.adp-gmbh.ch/cpp/common/base64.html
It works pretty well with the following code.
const std::string s = "I Am A Big Fat Cat" ;
std::string encoded = base64_encode(reinterpret_cast<const unsigned char*>(s.c_str()), s.length());
std::string decoded = base64_decode(encoded);
…