Re: +n- Flaw in IE



The way to duplicate is as follows:

1) Save the following file to your hard drive in ASCII:
<html>
<META http-equiv="Content-Type" content="text/html;
charset=western/iso">
<head>
<title>Wacky IE Flaw :]</title>
</head>
<body>
+1-
<script>
var v="a"+"A"
</script>
</body>
</html>
2) Load the Web Page
3) Un-Check Auto-Select
4) Select Western European (windows)
5) Check Auto-Select
.. . IE will now auto-detect as utf-7, reload the page and fail very
miserably
.. . The page will now fail every time you load until you click on
Western European (windows) or Western European (ISO)
.. . IE will completely ignore


Notes:
- The above sounds convoluded but I two different developers machines
fail exactly the same way because of this without us hacking around
with encoding at all. Although a co-incedence, it will and I am sure
does happen.
- If file is saved in Unicode or utf-8, it will be auto detected
because of data in the file header.
- This problem only happens when file is saved as ASCII which is
unfortunately a very common format.

.



Relevant Pages

  • RE: Using # in filename in JScript causes error
    ... The 'load' method takes a URI and URI's need to be escaped if they contain special characters. ... (% = 0x23 in ASCII) ...
    (microsoft.public.scripting.jscript)
  • Re: Error when loading a variable in a loop
    ... inside the file, maybe because it's ascii. ... dlmread importdata, or something like that. ... load precedes any leading underscores or ... characters with underscores. ...
    (comp.soft-sys.matlab)
  • Re: Error when loading a variable in a loop
    ... It's finding and opening the file with no problem ... inside the file, maybe because it's ascii. ... Or try accepting the results of load ... characters with underscores. ...
    (comp.soft-sys.matlab)
  • Re: Error when loading a variable in a loop
    ... It's finding and opening the file with no problem ... inside the file, maybe because it's ascii. ... Or try accepting the results of load ... characters with underscores. ...
    (comp.soft-sys.matlab)