{"action":"created","issue":{"url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/446","repository_url":"https://api.github.com/repos/coursera-dl/coursera-dl","labels_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/446/comments","events_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/446/events","html_url":"https://github.com/coursera-dl/coursera-dl/issues/446","id":135062144,"number":446,"title":"Unicode filenames","user":{"login":"vincentzlt","id":13462425,"avatar_url":"https://avatars.githubusercontent.com/u/13462425?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentzlt","html_url":"https://github.com/vincentzlt","followers_url":"https://api.github.com/users/vincentzlt/followers","following_url":"https://api.github.com/users/vincentzlt/following{/other_user}","gists_url":"https://api.github.com/users/vincentzlt/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentzlt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentzlt/subscriptions","organizations_url":"https://api.github.com/users/vincentzlt/orgs","repos_url":"https://api.github.com/users/vincentzlt/repos","events_url":"https://api.github.com/users/vincentzlt/events{/privacy}","received_events_url":"https://api.github.com/users/vincentzlt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coursera-dl/coursera-dl/labels/more-info-needed","name":"more-info-needed","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-20T11:13:28Z","updated_at":"2016-02-23T05:45:57Z","closed_at":null,"body":"I believe it would be better if the script can remain the Unicode filenames such as chinese. if it is transformed to a long-list of random string during downloading, it will dramatically add to the length to the link and whenever the link is longer than 255 characters, I believe the whole program will stop work."},"comment":{"url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/comments/187548028","html_url":"https://github.com/coursera-dl/coursera-dl/issues/446#issuecomment-187548028","issue_url":"https://api.github.com/repos/coursera-dl/coursera-dl/issues/446","id":187548028,"user":{"login":"rbrito","id":212145,"avatar_url":"https://avatars.githubusercontent.com/u/212145?v=3","gravatar_id":"","url":"https://api.github.com/users/rbrito","html_url":"https://github.com/rbrito","followers_url":"https://api.github.com/users/rbrito/followers","following_url":"https://api.github.com/users/rbrito/following{/other_user}","gists_url":"https://api.github.com/users/rbrito/gists{/gist_id}","starred_url":"https://api.github.com/users/rbrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbrito/subscriptions","organizations_url":"https://api.github.com/users/rbrito/orgs","repos_url":"https://api.github.com/users/rbrito/repos","events_url":"https://api.github.com/users/rbrito/events{/privacy}","received_events_url":"https://api.github.com/users/rbrito/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T05:45:57Z","updated_at":"2016-02-23T05:45:57Z","body":"Ah, I just saw from your previous comment that the files *are* in ASCII, but they are URL encoded with percent signs, like in:\r\n\r\n`https://d396qusza40orc.cloudfront.net/pkupop/lectures/Week4/05_%E6%B5%81%E6%8F%92%E5%85%A5%E8%BF%90%E7%AE%97%E7%AC%A6%E5%92%8C%E6%B5%81%E6%8F%90%E5%8F%96%E8%BF%90%E7%AE%97%E7%AC%A6%E7%9A%84%E9%87%8D%E8%BD%BD.pdf`\r\n\r\nOnce decoded to real characters, I get (with a real Python 3 session):\r\n\r\n```python\r\n>>> import urllib.parse\r\n>>> s = 'https://d396qusza40orc.cloudfront.net/pkupop/lectures/Week4/05_%E6%B5%81%E6%8F%92%E5%85%A5%E8%BF%90%E7%AE%97%E7%AC%A6%E5%92%8C%E6%B5%81%E6%8F%90%E5%8F%96%E8%BF%90%E7%AE%97%E7%AC%A6%E7%9A%84%E9%87%8D%E8%BD%BD.pdf'\r\n>>> urllib.parse.unquote(s)\r\n'https://d396qusza40orc.cloudfront.net/pkupop/lectures/Week4/05_流插入运算符和流提取运算符的重载.pdf'\r\n```\r\n\r\nIs that what you would expect the script to save the file as?"}}