Follow-up: saving the source of the file in Firefox and looking at it in a hexeditor, it looks like it's actually UTF-16/UCS-2.
Even more strange?
User Profile
Collapse
-
Character encoding after window.open()
Hi!
I have a small javascript snippet that does the following:
Now, in the data variable,...Code:// an entire html document is in here data = "\u003c!DOCTYPE html PUBLIC \u0022-//W3C//DTD XHTML 1.1 Strict//EN\u0022\n ...."; newwin = window.open("", "outputwin", ""); newwin.document.write(data); newwin.document.close();
No activity results to display
Show More
Leave a comment: