You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unicode in HTML documents is garbled when loading URLs in the browser.
Background:
To render both images and HTML currently everything is loaded as binary and thus non-ASCII text is not correctly decoded. Apparently XHR needs to be told in advance whether binary data or text is expected and thus doesn't leave us with many choices.
Solutions:
Find a workaround for loading both types through once request
Do 2 requests worst case, a second one in case the first was the wrong binary/text setting
Quick spike shows that using XHR2 it is possible to load a blob from binary and text sources, and then depending on the MIME header use FileReader.readAsBinaryString() or FileReader.readAsText()), so option 1 is looking good.
Unicode in HTML documents is garbled when loading URLs in the browser.
Background:
To render both images and HTML currently everything is loaded as binary and thus non-ASCII text is not correctly decoded. Apparently XHR needs to be told in advance whether binary data or text is expected and thus doesn't leave us with many choices.
Solutions:
The text was updated successfully, but these errors were encountered: