编码器解码器 URL 编码解码

papering / 2023-06-21 / 原文

 

导入模板.xlsx

%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx

unquote('abc%20def') -> 'abc def'.
 
import urllib.parse
attachment_name = urllib.parse.unquote(attachment_name)
 
encodeURIComponent() - JavaScript | MDN https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent