Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specify UTF-8 Filename to save as #1236

Open
kiwijunglist opened this issue Aug 13, 2013 · 7 comments
Open

specify UTF-8 Filename to save as #1236

kiwijunglist opened this issue Aug 13, 2013 · 7 comments

Comments

@kiwijunglist
Copy link

@kiwijunglist kiwijunglist commented Aug 13, 2013

c:\youtube-dl.exe http://www.youtube.com/watch?v=-fSFu-ZaX0w -o "C:\Mötley Crüe - Kickstart My Heart.avi" -v -w

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=-fSFu-ZaX0w', '-o', 'C:\Motley Crue - Kickstart My Heart.avi', '-v', '-w']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1

\Mötley Crüe - Kickstart My Heart.avi
\Motley Crue - Kickstart My Heart.avi (UTF8 has been stripped)

Anyway to get youtube-dl.exe to not change the filename?

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Aug 13, 2013

youtube-dl.exe http://www.youtube.com/watch?v=-fSFu-ZaX0w -o "Mötley Crüe - Kickstart My Heart.avi" -v -w
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=-fSFu-ZaX0w', '-o', 'Motley Crue - Kickstart My Heart.avi', '-v', '-w']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[youtube] Setting language
[youtube] -fSFu-ZaX0w: Downloading video webpage
[youtube] -fSFu-ZaX0w: Downloading video info webpage
[youtube] -fSFu-ZaX0w: Extracting video information
[download] Destination: Motley Crue - Kickstart My Heart.avi

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Aug 14, 2013

youtube-dl.exe http://www.youtube.com/watch?v=-fSFu-ZaX0w -o "MГ¶tley CrГјe - Kickstart My Heart.avi" -v -w
[debug] Command-line args: ['http://www.youtube.com/watch?v=-fSFu-ZaX0w', '-o', 'M\xc3\xb6tley Cr\xc3\xbce - Kickstart My Heart.avi', '-v', '-w']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1

chcp 65001
Active code page: 65001

D:\Work\Programming\Delphi\MePoTools>youtube-dl.exe http://www.youtube.com/watch?v=-fSFu-ZaX0w -o "Mötley Crüe - Kickstart My Heart.avi" -v -w
[debug] Command-line args: ['http://www.youtube.com/watch?v=-fSFu-ZaX0w', '-o', 'Motley Crue - Kickstart My Heart.avi', '-v', '-w']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1

MГ¶tley CrГјe -> M\xc3\xb6tley Cr\xc3\xbce
Mötley Crüe -> Motley Crue

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Aug 14, 2013

D:\Work\Programming\Delphi\MePoTools>chcp 65001
Active code page: 65001

D:\Work\Programming\Delphi\MePoTools>youtube-dl.exe http://www.youtube.com/watch?v=-fSFu-ZaX0w -o "Mötley Crüe - Kickstart My Heart.avi" -v -w
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=-fSFu-ZaX0w', '-o', 'Motley Crue - Kickstart My Heart.avi', '-v', '-w']
[debug] youtube-dl version 2013.08.09
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {'ftp': 'ftp://gray-fish.blackhole.net:3128', 'http': 'http://gray-fish.blackhole.net:3128', 'https': 'https://gray-fish.blackhole.net:3128'}
[youtube] Setting language
[youtube] -fSFu-ZaX0w: Downloading video webpage
[youtube] -fSFu-ZaX0w: Downloading video info webpage
[youtube] -fSFu-ZaX0w: Extracting video information

D:\Work\Programming\Delphi\MePoTools>dir *.avi
Volume in drive D is Work
Volume Serial Number is 6AD0-978D

Directory of D:\Work\Programming\Delphi\MePoTools

06/07/2010 09:20 36 525 653 Motley Crue - Kickstart My Heart.avi
1 File(s) 36 525 653 bytes
0 Dir(s) 106 207 449 088 bytes free
D:\Work\Programming\Delphi\MePoTools>

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Aug 14, 2013

The same goes for youtube-dl version 2013.08.14

D:\Work\Programming\Delphi\MePoTools>chcp
Текущая кодовая страница: 866

D:\Work\Programming\Delphi\MePoTools>1.cmd

D:\Work\Programming\Delphi\MePoTools>chcp 65001
Active code page: 65001

D:\Work\Programming\Delphi\MePoTools>youtube-dl.exe http://www.youtube.com/watch?v=-fSFu-ZaX0w -o "Mötley Crüe - Kickstart My Heart.avi" -v -w
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=-fSFu-ZaX0w', '-o', 'Motley Crue - Kickstart My Heart.avi', '-v', '-w']
[debug] youtube-dl version 2013.08.14
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {'ftp': 'ftp://gray-fish.blackhole.net:3128', 'http': 'http://gray-fish.blackhole.net:3128', 'https': 'https://gray-fish.blackhole.net:3128'}
[youtube] Setting language
[youtube] -fSFu-ZaX0w: Downloading video webpage
[youtube] -fSFu-ZaX0w: Downloading video info webpage
[youtube] -fSFu-ZaX0w: Extracting video information

D:\Work\Programming\Delphi\MePoTools>dir *.avi
Volume in drive D is Work
Volume Serial Number is 6AD0-978D

Directory of D:\Work\Programming\Delphi\MePoTools

06/07/2010 09:20 36 525 653 Motley Crue - Kickstart My Heart.avi
1 File(s) 36 525 653 bytes
0 Dir(s) 106 170 957 824 bytes free
D:\Work\Programming\Delphi\MePoTools>dir *.testUTF8
Volume in drive D is Work
Volume Serial Number is 6AD0-978D

Directory of D:\Work\Programming\Delphi\MePoTools

06/07/2010 09:20 36 525 653 Mötley Crüe - Kickstart My Heart.testUTF8
1 File(s) 36 525 653 bytes
0 Dir(s) 106 170 957 824 bytes free

D:\Work\Programming\Delphi\MePoTools>

@phihag
Copy link
Contributor

@phihag phihag commented Aug 14, 2013

Thanks for the report, I'll try to reproduce it on a Windows machine and report back.

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Aug 14, 2013

Thank you so much. I'll be waiting.

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Aug 21, 2013

Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.