[Python 3] When downloading the file, the file name is brought from the content disposition, and it is a problem with broken Korean.

Asked 2 years ago, Updated 2 years ago, 96 views

Download the file to Python and get the file name from content disposition to save it.

However, the Korean alphabet of the file name is printed in the form of %ㅁ%ㅁ, just like the url Symbols, numbers, like English and ... look normal. I tried many things, but it didn't work out TT

python file download

2022-09-22 08:04

1 Answers

I solved it crying We could use urlib.parse's unquote.


2022-09-22 08:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.