Bug 740502 - Avoid an error message about character encoding when displaying an IM conversation, r=clokep.
authorFlorian Quèze <florian@queze.net>
Fri, 13 Apr 2012 12:06:44 +0200
changeset 11608 8feb1f71d7c14e25139b672e0ff3f7912610983e
parent 11607 a80766e8b581739611b9aa9f17acba802e8ad8f4
child 11609 388c60e507d1bc7a334c8aeb0a69df2372faf184
push idunknown
push userunknown
push dateunknown
reviewersclokep
bugs740502
Bug 740502 - Avoid an error message about character encoding when displaying an IM conversation, r=clokep.
chat/content/convbrowser.xml
--- a/chat/content/convbrowser.xml
+++ b/chat/content/convbrowser.xml
@@ -98,16 +98,17 @@
 
             // Prevent ongoing asynchronous message display from continuing.
             this._messageDisplayPending = false;
 
             // _loadState is 0 while loading conv.html and 1 while
             // loading the real conversation HTML.
             this._loadState = 0;
 
+            this.docShell.charset = "UTF-8";
             const URI = "chrome://chat/content/conv.html";
             const flag = Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
             this.webNavigation.loadURI(URI, flag, null, null, null);
             this.addProgressListener(this);
 
             if (this._scrollingView)
               this._autoScrollPopup.hidePopup();
           ]]>