{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/5094","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5094/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5094/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5094/events","html_url":"https://github.com/rg3/youtube-dl/issues/5094","id":59390170,"number":5094,"title":"Windows Unicode (utf16) not handled in filenames ?","user":{"login":"Steveland","id":11254566,"avatar_url":"https://avatars.githubusercontent.com/u/11254566?v=3","gravatar_id":"","url":"https://api.github.com/users/Steveland","html_url":"https://github.com/Steveland","followers_url":"https://api.github.com/users/Steveland/followers","following_url":"https://api.github.com/users/Steveland/following{/other_user}","gists_url":"https://api.github.com/users/Steveland/gists{/gist_id}","starred_url":"https://api.github.com/users/Steveland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Steveland/subscriptions","organizations_url":"https://api.github.com/users/Steveland/orgs","repos_url":"https://api.github.com/users/Steveland/repos","events_url":"https://api.github.com/users/Steveland/events{/privacy}","received_events_url":"https://api.github.com/users/Steveland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-01T09:52:13Z","updated_at":"2015-04-13T20:34:08Z","closed_at":null,"body":"Hello,\r\n\r\nI wonder if you can add support for utf16 in filenames. I'm trying to pass this command line from a Windows c++ program:\r\nyoutube-dl.exe -o output_美.mp4 -v https://www.youtube.com/watch?v=HEwDZ8KtRMg\r\n\r\nand I get this output:\r\n[debug] System config: []\r\n[debug] User config: []\r\n[debug] Command-line args: ['-v', '-o', 'C:\\\\Users\\\\Alan\\\\Desktop\\\\youtube-dl\\\\output_?.mp4', 'https://www.youtube.com/watch?v=HEwDZ8KtRMg']\r\n[debug] Encodings: locale cp1252, fs mbcs, out None, pref cp1252\r\n[debug] youtube-dl version 2015.02.28\r\n[debug] Python version 2.7.8 - Windows-7-6.1.7601-SP1\r\n[debug] exe versions: ffmpeg N-68881-ga79ac73, ffprobe N-68881-ga79ac73, rtmpdump 2.4\r\n[debug] Proxy map: {}\r\n[youtube] HEwDZ8KtRMg: Downloading webpage\r\n[youtube] HEwDZ8KtRMg: Extracting video information\r\n[youtube] HEwDZ8KtRMg: Downloading DASH manifest\r\n[debug] Invoking downloader on u'https://r1---sn-25g7snee.googlevideo.com/videoplayback?source=youtube&mime=video%2Fmp4&expire=1425224794&itag=18&fexp=904844%2C905657%2C907263%2C927622%2C931392%2C934954%2C9406140%2C9406861%2C943917%2C947225%2C947240%2C948124%2C951703%2C952302%2C952605%2C952612%2C952620%2C952901%2C955301%2C957201%2C959701&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&dur=126.525&mm=31&ms=au&mv=m&mt=1425203133&ipbits=0&ip=2.14.183.224&key=yt5&upn=CUV2UYbWCXs&id=o-ALMUGUmQ1J1TmoV9FOrSLSrPdyF3XR07mSjPEJ51kId_&ratebypass=yes&initcwndbps=1465000&requiressl=yes&sver=3&signature=32631A825116B8DFB0F8F040ACEECB8A897BD008.758F1F62B48F4ABDE4CFA6F51A37C5FFF1990E51&pl=16'\r\nTraceback (most recent call last):\r\n  File \"__main__.py\", line 19, in <module>\r\n  File \"youtube_dl\\__init__.pyo\", line 397, in main\r\n  File \"youtube_dl\\__init__.pyo\", line 387, in _real_main\r\n  File \"youtube_dl\\YoutubeDL.pyo\", line 1442, in download\r\n  File \"youtube_dl\\YoutubeDL.pyo\", line 654, in extract_info\r\n  File \"youtube_dl\\YoutubeDL.pyo\", line 700, in process_ie_result\r\n  File \"youtube_dl\\YoutubeDL.pyo\", line 1143, in process_video_result\r\n  File \"youtube_dl\\YoutubeDL.pyo\", line 1375, in process_info\r\n  File \"youtube_dl\\YoutubeDL.pyo\", line 1350, in dl\r\n  File \"youtube_dl\\downloader\\common.pyo\", line 339, in download\r\n  File \"youtube_dl\\downloader\\http.pyo\", line 158, in real_download\r\n  File \"youtube_dl\\utils.pyo\", line 258, in sanitize_open\r\n  File \"ntpath.pyo\", line 64, in join\r\n  File \"ntpath.pyo\", line 114, in splitdrive\r\nTypeError: object of type 'generator' has no len()\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/92490322","html_url":"https://github.com/rg3/youtube-dl/issues/5094#issuecomment-92490322","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5094","id":92490322,"user":{"login":"mbnoimi","id":284547,"avatar_url":"https://avatars.githubusercontent.com/u/284547?v=3","gravatar_id":"","url":"https://api.github.com/users/mbnoimi","html_url":"https://github.com/mbnoimi","followers_url":"https://api.github.com/users/mbnoimi/followers","following_url":"https://api.github.com/users/mbnoimi/following{/other_user}","gists_url":"https://api.github.com/users/mbnoimi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbnoimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbnoimi/subscriptions","organizations_url":"https://api.github.com/users/mbnoimi/orgs","repos_url":"https://api.github.com/users/mbnoimi/repos","events_url":"https://api.github.com/users/mbnoimi/events{/privacy}","received_events_url":"https://api.github.com/users/mbnoimi/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T20:34:07Z","updated_at":"2015-04-13T20:34:07Z","body":"@yan12125 No my problem is exactly what occurs here... [read more please](https://github.com/MrS0m30n3/youtube-dl-gui/issues/39)\r\n\r\n> your problem seems to be related to py2exe itself rather than youtube-dl\r\n\r\nNo. I just made a test for building binaries for youtube-dl using py2exe same as @jaimeMF did\r\n"}}