Use python comes urlib encoding and decoding, no problem. (Https://www.hustyx.com/python/)
But if it is encoded with coding tools url (http://tool.chinaz.com/Tools/urlencode.aspx), space will turn into a "+", can not be restored when reused unqoute. At this time the need to use unquote_pluse be decoding.