wepy-urlencode Install $ npm install wepy-urlencode -S Usage import {urlencode,urldecode} from "wepy-urlencode"; var urlencode = require('urlencode'); console.log(urlencode('你好')); // 默认 utf-8 console.log(urlencode('苏千', 'gbk')); // '%CB%D5%C7%A7' License MIT