Encode to URL-encoded format

URL Encode and Decode - Online https://www.urlencoder.org/

 https://docs.python.org/3/library/urllib.parse.html

 

b45b-aba83171b818/reportAPI(部分).xls

b45b-aba83171b818%2FreportAPI%EF%BC%88%E9%83%A8%E5%88%86%EF%BC%89.xls

 

导入模板.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
HTML URL 编码参考手册 https://www.w3school.com.cn/tags/html_ref_urlencode.asp
 
posted @ 2021-06-30 17:31  papering  阅读(77)  评论(0编辑  收藏  举报