respect encoding of display data from urls #731

Merged
merged 1 commit into from Aug 25, 2011

Projects

None yet

2 participants

@minrk
Member
minrk commented Aug 25, 2011

previously, loading a display object from a URL would just be bytes, ignoring page encoding, causing a UnicodeDecodeError when json tried to serialize the data. This respects the encoding if the header specifies one.

@ellisonbg
Member

@fperez, I am going to merge this. But a better demo is to put the page in an iframe like this:

HTML('<iframe src=http://www.google.fr width=600 height=400>')
@ellisonbg ellisonbg merged commit 0387301 into ipython:master Aug 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment