Bizarre display behavior with plus (+), minus (-) signs

  • Thread starter Thread starter Jay S
  • Start date Start date
J

Jay S

Hi,

I'm getting very strange behavior when trying to display HTML that contains
plus and minus signs in a certain sequence. The issue has to do with a plus
sign followed by alphanumeric characters followed by a minus sign (with no
spaces in-between). It's easier to show than explain. Could someone try
copying the following 3 samples and tell me what IE displays for you in each
case? I'm using IE 6.0 SP1.

(1)
<html>
<body>
+8-
</body>
</html>
(displays nothing)

(2)
<html>
<body>
a+a-t
</body>
</html>
(displays "at")

(3)
<html>
<body>
8+947asdf7987fdsfd-9
</body>
</html>
(displays "8??????9")

Note that the alphanumeric characters used in each sample are random; if I
use other characters, I still get the strange behavior.

Can anyone shed light on this perplexing behavior?

Thanks,
Jay
 
Jay S said:
Hi,

I'm getting very strange behavior when trying to display HTML that contains
plus and minus signs in a certain sequence.

Turns out the problem has to do with encoding. It appears that it only
occurs when UTF-7 is chosen, though I don't know enough about encoding to
know why that character sequence causes it.
 
Back
Top