Skip to content

Instantly share code, notes, and snippets.

@jorgeas80
Last active May 23, 2018 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorgeas80/a98563b7aa4d00ab38661e4057e6c22c to your computer and use it in GitHub Desktop.
Save jorgeas80/a98563b7aa4d00ab38661e4057e6c22c to your computer and use it in GitHub Desktop.
encodings y python
- Encoding es una manera de transformar símbolos en bytes.
- Populares: ASCII (solo sabe transformar 127 símbolos), UTF-8 (sabe transformar todos los símbolos unicode, que son 1.1M)
- Python 2: usa ASCII como encoding por defecto => cuando intenta transformar un símbolo en bytes, aplica ASCII. Si encuentra algo que no entiende, por defecto peta :-(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment