Skip to content

Instantly share code, notes, and snippets.

@ychaouche
Created February 26, 2024 17:21
Show Gist options
  • Save ychaouche/ebee9bcce830d12da96c7c7bd95e3411 to your computer and use it in GitHub Desktop.
Save ychaouche/ebee9bcce830d12da96c7c7bd95e3411 to your computer and use it in GitHub Desktop.
$ python3.6 -c 'import sys; print(ascii(sys.argv[1]))"réussi à"'
Unable to decode the command from the command line:
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 39-40: surrogates not allowed
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment