Error:UnicodeEncodeError: 'latin-1' codec can't encode character '\ufffd' in position 46: Body ('�') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
Getting the above error it is with the filename '20220915 DRE S�o Tom� and Pr�ncipesw.xml' I try downloading it with the encode but since the url will be wrong it doesnot get a response from the server. Could anyone tell me how to pass this as a valid url without getting the above error