Home
> Discussions & Support
> Topic
Not working if html file saved with unicode(UTF-8) in IE6
Posted by hnyllj
Not working if html file saved with unicode(UTF-8) in IE6 March 09, 2009 09:21AM |
Registered: 15 years ago Posts: 3 |
Here the simple code from the JS Charts User Guide
but if i save the code as a html file and select the encoding of UTF-8, and click the html file it told me that the 'JSChart' is undefined!
so i change the encoding of ANSI and saved again, it works!
My browser is IE6
Edited 2 time(s). Last edit at 03/09/2009 09:38AM by hnyllj.
<html> <head> <title></title> <script type="text/javascript" src="jscharts.js"></script> </head> <body> <div id="chartContainer"> This is just a replacement in case JavaScript is not avaliable or used for SEO purpose </div> <script type="text/javascript"> var myData = new Array([10, 20], [15, 10], [20, 30], [25, 10], [30, 5]); var myChart = new JSChart('chartContainer', 'line'); myChart.setDataArray(myData); myChart.draw(); </script> </body> </html>
but if i save the code as a html file and select the encoding of UTF-8, and click the html file it told me that the 'JSChart' is undefined!
so i change the encoding of ANSI and saved again, it works!
My browser is IE6
Edited 2 time(s). Last edit at 03/09/2009 09:38AM by hnyllj.
Re: Not working if html file saved with unicode(UTF-8) March 09, 2009 09:33AM |
Registered: 15 years ago Posts: 3 |
Re: Not working if html file saved with unicode(UTF-8) in IE6 March 16, 2009 06:52AM |
Registered: 15 years ago Posts: 3 |
Re: Not working if html file saved with unicode(UTF-8) March 21, 2009 06:13AM |
Registered: 15 years ago Posts: 2 |
Sorry, you do not have permission to post/reply in this forum.