URL Encoder

URL encode and decode for non-utf8 encodings

当前为 2023-07-20 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/471280/1222828/URL%20Encoder.js

作者
PYUDNG
版本
0.1.1
创建于
2023-07-20
更新于
2023-07-20
大小
6.0 KB
许可证
MIT

@require this script and you'll get $URL.encode(str) and $URL.decode(str) available.

$URL.encode(str) returns encodeURIComponent(str) but in encoding=document.characterSet

$URL.decode(str) returns decodeURIComponent(str) but in encoding=document.characterSet


for now, only big5 and gbk are supported for $URL.encode(str). $URL.decode(str) supports all encodings that your browser supports.

License: MIT Modified from: https://github.com/EtherDream/str2gbk/