Giter VIP home page Giter VIP logo

urlencoder's Introduction

UrlEncoder

vc++ c++ cpp UrlEncoder class( UrlEncode / UrlDecode / UTF8UrlEncode / UTF8UrlDecode)

参考了网上一个strcoding的代码,原出处已不可查


包含头文件

#include "Encoder.h"

代码片段

Encoder encoder;
std::string str = encoder.UTF8UrlEncode("C++中实现类似php的UTF8和UrlEncode函数");
printf("%s\r\n", str.c_str());

str = encoder.UTF8UrlDecode("C%2B%2B%E4%B8%AD%E5%AE%9E%E7%8E%B0%E7%B1%BB%E4%BC%BCphp%E7%9A%84UTF8%E5%92%8CUrlEncode%E5%87%BD%E6%95%B0");
printf("%s\r\n", str.c_str());

str = encoder.UrlEncode("C++中实现类似php的UTF8和UrlEncode函数");
printf("%s\r\n", str.c_str());

str = encoder.UrlDecode("C%2B%2B%D6%D0%CA%B5%CF%D6%C0%E0%CB%C6php%B5%C4UTF8%BA%CDUrlEncode%BA%AF%CA%FD");
printf("%s\r\n", str.c_str());

urlencoder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.