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

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' #26688

Closed
chiaweilee opened this issue Sep 23, 2020 · 1 comment
Closed

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' #26688

chiaweilee opened this issue Sep 23, 2020 · 1 comment
Labels

Comments

@chiaweilee
Copy link

@chiaweilee chiaweilee commented Sep 23, 2020

Checklist

  • [ x ] I'm asking a question
  • [ x ] I've looked through the README and FAQ for similar questions
  • [ x ] I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE

youtube-dl -—proxy socks5://127.0.0.1:19181/ https://www.youtube.com/watch?v=mJv8xr****

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 474, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 58, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/options.py", line 888, in parseOpts
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/optparse.py", line 1402, in parse_args
    self.error(str(err))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 17: ordinal not in range(128)
@chiaweilee chiaweilee added the question label Sep 23, 2020
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 23, 2020

Invalid non-ASCII dash in -—proxy.

@dstftw dstftw closed this Sep 23, 2020
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
2 participants
You can’t perform that action at this time.