User Profile

Collapse

Profile Sidebar

Collapse
stup
stup
Last Activity: Mar 30 '07, 01:02 PM
Joined: Mar 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • stup
    replied to Character encoding after window.open()
    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?
    See more | Go to post

    Leave a comment:


  • stup
    started a topic Character encoding after window.open()

    Character encoding after window.open()

    Hi!

    I have a small javascript snippet that does the following:

    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();
    Now, in the data variable,...
    See more | Go to post
No activity results to display
Show More
Working...