The moose likes HTML, CSS and JavaScript and the fly likes entity encoding issue IE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "entity encoding issue IE" Watch "entity encoding issue IE" New topic
Author

entity encoding issue IE

omar khan
Ranch Hand

Joined: Feb 01, 2001
Posts: 183
I have discovered that

is translated to

by IE, while Netscape, Mozilla and Opera work correctly. Apparently IE appends a ; to &sect autonomously.

[ April 11, 2003: Message edited by: omar khan ]
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50673

I am assuming that this when the URL is embedded within a page? (I'll avoid my weekly 'What do you expect from Microsoft?' tirade.. oh, too late...)
Perhaps if you encode the ampersand itself as an entity that will keep all the browsers happy?
hth,
bear
[ April 11, 2003: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: entity encoding issue IE
 
Threads others viewed
Creating a Reglar Expressions
Difference between Arguments and parameters
Struts 2 struts.xml not redirecting
Unable to Run Servlet from past two days
How to add error message before sendRedirect
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com