grEvenX
04-26-2007, 04:26 AM
UpdateManager doesn't take into account the "charset" property on <script> tags.
I have set up an example showing the bug in detail: http://even.lynweb.no/extpg/utf_javascript/
Push on the first link which calls the javascript loaded from the head of the html page, and it gives you a properly encoded MessageBox.
Push on the second link, it will tell the update manager to update the content of the center region in my layout with a page that loads the same javascript, and then trigger the MessageBox from that source. As you can see, it doesn't seem to care for the "charset" property on the <script> tag.
With help from dfenwick on IRC we have pinpointed the source of the bug, it's in the Ext.Element class on line 1697 from Ext 1.0 release, I'd guess you just need to add a regex that checks for the charset property.
On a side-note, shouldn't the type property be included as well?
I have set up an example showing the bug in detail: http://even.lynweb.no/extpg/utf_javascript/
Push on the first link which calls the javascript loaded from the head of the html page, and it gives you a properly encoded MessageBox.
Push on the second link, it will tell the update manager to update the content of the center region in my layout with a page that loads the same javascript, and then trigger the MessageBox from that source. As you can see, it doesn't seem to care for the "charset" property on the <script> tag.
With help from dfenwick on IRC we have pinpointed the source of the bug, it's in the Ext.Element class on line 1697 from Ext 1.0 release, I'd guess you just need to add a regex that checks for the charset property.
On a side-note, shouldn't the type property be included as well?