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
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
- <!--
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- -->
- <title>backend</title>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
- <!--
- <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.js" type="text/javascript"></script>
- -->
- <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/base/jquery-ui.css" type="text/css" media="all" />
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/jquery-ui.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function(){$("#accordion").accordion();});
- </script>
- </head>
- <body>
- <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>
- <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>
- <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>
- <div id="accordion">
- <h3><a href="#">Accordion 1</a></h3><div><p>Hello from Accordion 1!</p></div>
- <h3><a href="#">Accordion 2</a></h3><div><p>Hello from Accordion 2!</p></div>
- <h3><a href="#">Accordion 3</a></h3><div><p>Hello from Accordion 3!</p></div>
- </div>
- </body>
- </html>