Last active
May 23, 2018 12:04
-
-
Save jorgeas80/a98563b7aa4d00ab38661e4057e6c22c to your computer and use it in GitHub Desktop.
encodings y python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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