Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

EncodeDecode

 

 

 

 

EncodeDecode.cpp

 

#include <Core/Core.h>

 

using namespace Upp;

 

CONSOLE_APP_MAIN

{

    String data = "Hello world, this is test! Also '=' to test QP.";

    String enc;

    

    enc = HexEncode(data);

    DUMP(enc);

    DUMP(HexDecode(enc));

    DUMP(HexEncode(data, 8, ':'));

 

    enc = Base64Encode(data);

    DUMP(enc);

    DUMP(Base64Decode(enc));

 

    enc = UrlEncode(data);

    DUMP(enc);

    DUMP(UrlDecode(enc));

 

    enc = QPEncode(data);

    DUMP(enc);

    DUMP(QPDecode(enc));

    

    DUMP(DeHtml("<foo&bar>"));

}

 

 

 

 

Do you want to contribute?