Closed yeyt97 closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
5d77515
) 97.75% compared to head (45609d2
) 97.75%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I don't know if this is the best way to go about this since what we're really doing here is using os.fsencode(), urllib.parse.quote_from_bytes(), and them immediately unquoting, but it passes the tests and seems to work fine. Merging.
Using URL encoding will cause Chinese characters to display as garbled text, making it impossible to correctly display images with Chinese file paths. By using the urllib.parse.unquote() method to restore the garbled URL, the Chinese characters can be displayed properly.