Created
July 16, 2018 21:23
-
-
Save Fhernd/f083036af7fa6aeaa70b3bb708ad78b7 to your computer and use it in GitHub Desktop.
Cambiar el sistema de codificación una vez abiero un archivo. OrtizOL.
This file contains 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
import urllib.request | |
import io | |
u = urllib.request.urlopen('http://www.python.org') | |
f = io.TextIOWrapper(u, encoding='utf-8') | |
texto = f.read() | |
print(texto) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment