jQueryUI 1.8.3, character encoding ISO-8859-1, and IE6 doesn't work.

jQueryUI 1.8.3, character encoding ISO-8859-1, and IE6 doesn't work.

I have been testing my site on IE6, and came across some errors.

I traced it back to my character encoding:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

Just for kicks, I changed from jQueryUI 1.8.3 to jQueryUI 1.8.1, and it worked.

I then left it as jQueryUI 1.8.3, but changed the character encoding to the following and it worked:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />

EDIT - SAME RESULTS WITH JQUERYUI 1.8.4 AS 1.8.3.

Can anyone explain what I am observing?  Is the best fix just to use utf-8?

Thank you

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  5. <!--
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. -->
  8. <title>backend</title>
  9. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
  10. <!--
  11. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
  12. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.js" type="text/javascript"></script>
  13. -->
  14. <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/base/jquery-ui.css" type="text/css" media="all" />
  15. <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/jquery-ui.js" type="text/javascript"></script>
  16. <script type="text/javascript">
  17. $(function(){$("#accordion").accordion();});
  18. </script>
  19. </head>
  20. <body>
  21. <p>jQuery UI 1.8.1 works with meta http-equiv charset=ISO-8859-1 when served by Apache and viewed by IE6.0.2900 SP3.</p>
  22. <p>jQuery UI 1.8.3 works with meta http-equiv charset==utf-8 when served by Apache and viewed by IE6.0.2900 SP3.</p>
  23. <p>jQuery UI 1.8.3 doesn't work with meta http-equiv charset=ISO-8859-1 when served by Apache and viewed by IE6.0.2900 SP3.</p>
  24. <div id="accordion">
  25. <h3><a href="#">Accordion 1</a></h3><div><p>Hello from Accordion 1!</p></div>
  26. <h3><a href="#">Accordion 2</a></h3><div><p>Hello from Accordion 2!</p></div>
  27. <h3><a href="#">Accordion 3</a></h3><div><p>Hello from Accordion 3!</p></div>
  28. </div>
  29. </body>
  30. </html>