Skip to content

Instantly share code, notes, and snippets.

@ychaouche
Created February 26, 2024 16:58
Show Gist options
  • Save ychaouche/faaefb9b1e2c85c33126671ea0a76775 to your computer and use it in GitHub Desktop.
Save ychaouche/faaefb9b1e2c85c33126671ea0a76775 to your computer and use it in GitHub Desktop.
17:55:58 ~/CODE/TEST/PYTHON -1- $ LD_LIBRARY_PATH=/snap/core18/current/lib/x86_64-linux-gnu/ /snap/core18/current/lib64/ld-linux-x86-64.so.2 /snap/core18/current/usr/bin/python3.6
Python 3.6.9 (default, Mar 10 2023, 16:46:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> s="j'ai réussi à écrire une version plus concise"
>>> print(s)
j'ai réussi à écrire une version plus concise
>>> print(s.encode('UTF-8'))
b"j'ai r\xc3\xa9ussi \xc3\xa0 \xc3\xa9crire une version plus concise"
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment