]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/components/protocols.js
Import 1.0b7.1 supporting Firefox up to 8.*
[dactyl.git] / common / components / protocols.js
index d14b3e4e804d5262a886415ea61c8d411e40cc93..94eab5d7afd914b8fa1fcc7d0a0b6bbb148c5a23 100644 (file)
@@ -248,7 +248,7 @@ function LocaleChannel(pkg, path, orig) {
 
 function StringChannel(data, contentType, uri) {
     let channel = services.StreamChannel(uri);
-    channel.contentStream = services.StringStream(data);
+    channel.contentStream = services.CharsetConv("UTF-8").convertToInputStream(data);
     if (contentType)
         channel.contentType = contentType;
     channel.contentCharset = "UTF-8";
@@ -293,12 +293,12 @@ function XMLChannel(uri, contentType) {
     if (doctype) {
         this.writes.push(doctype + "[\n");
         try {
-            this.writes.push(services.io.newChannel(url, null, null).open())
+            this.writes.push(services.io.newChannel(url, null, null).open());
         }
         catch (e) {}
         if (!open)
             this.writes.push("\n]");
-        this.writes.push(post)
+        this.writes.push(post);
     }
     this.writes.push(channelStream);