Preserve charset attribute of meta tag in HTML Blob?











up vote
1
down vote

favorite












I am generating a client-side HTML redirect like this:



<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Déjà vu - Wikipedia</title>
<script type='text/javascript'>
document.addEventListener('DOMContentLoaded', function () {
var newHTML = document.createElement('html');
var newHead = document.createElement('head');
var newMeta = document.createElement('meta');
var newTitle = document.createElement('title');
newTitle.text = "Déjà vu - Wikipedia";
newMeta.httpEquiv = "refresh";
newMeta.charset = "utf-8";
newMeta.content = "30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu";
var newBody = document.createElement('body');
var newPar = document.createElement('p');
var newText = document.createTextNode('Loading Déjà vu - Wikipedia...');
newPar.appendChild(newText);
newBody.appendChild(newPar);
newHead.appendChild(newMeta);
newHead.appendChild(newTitle);
newHTML.append(newHead);
newHTML.append(newBody);
var tempAnchor = window.document.createElement('a');
HTMLBlob = new Blob([newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});
tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
tempAnchor.download = "example-redirect.html"
tempAnchor.style.display = 'none';
document.body.appendChild(tempAnchor);
tempAnchor.click();
document.body.removeChild(tempAnchor);

});
</script>
</head>
<body>
</body>
</html>


However, I am losing the charset meta attribute when I do so. The output looks like this:



<html><head><meta http-equiv="refresh" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


This means that my browser is not sure what encoding to use, and does not display the accents correctly.



Loading Déjà vu - Wikipedia...



This, on the other hand, properly shows the accents:



<html><head><meta http-equiv="refresh" charset="utf-8" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


Loading Déjà vu - Wikipedia...



I've reduced it down as minimal example as I can, and it still occurs.






<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>title</title>
<script type='text/javascript'>
document.addEventListener('DOMContentLoaded', function() {
var newHTML = document.createElement('html');
var newHead = document.createElement('head');
var newMeta = document.createElement('meta');
newMeta.charset = "utf-8";
newHead.appendChild(newMeta);
newHTML.append(newHead);
var tempAnchor = window.document.createElement('a');
HTMLBlob = new Blob([newHTML.outerHTML], {
type: 'text/html; charset=UTF-8'
});
tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
tempAnchor.download = "minimal-output.html"
tempAnchor.style.display = 'none';
document.body.appendChild(tempAnchor);
tempAnchor.click();
document.body.removeChild(tempAnchor);

});
</script>
</head>

<body>
</body>

</html>





Here is the output:



<html><head><meta></head></html>


This occurs in both Firefox 63.0 and Chromium 70.0. Here is a link to the Git repo:



https://github.com/nbeaver/stackoverflow_question_2018-11-07



How can I preserve the charset attribute of an HTML blob?










share|improve this question




























    up vote
    1
    down vote

    favorite












    I am generating a client-side HTML redirect like this:



    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>Déjà vu - Wikipedia</title>
    <script type='text/javascript'>
    document.addEventListener('DOMContentLoaded', function () {
    var newHTML = document.createElement('html');
    var newHead = document.createElement('head');
    var newMeta = document.createElement('meta');
    var newTitle = document.createElement('title');
    newTitle.text = "Déjà vu - Wikipedia";
    newMeta.httpEquiv = "refresh";
    newMeta.charset = "utf-8";
    newMeta.content = "30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu";
    var newBody = document.createElement('body');
    var newPar = document.createElement('p');
    var newText = document.createTextNode('Loading Déjà vu - Wikipedia...');
    newPar.appendChild(newText);
    newBody.appendChild(newPar);
    newHead.appendChild(newMeta);
    newHead.appendChild(newTitle);
    newHTML.append(newHead);
    newHTML.append(newBody);
    var tempAnchor = window.document.createElement('a');
    HTMLBlob = new Blob([newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});
    tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
    tempAnchor.download = "example-redirect.html"
    tempAnchor.style.display = 'none';
    document.body.appendChild(tempAnchor);
    tempAnchor.click();
    document.body.removeChild(tempAnchor);

    });
    </script>
    </head>
    <body>
    </body>
    </html>


    However, I am losing the charset meta attribute when I do so. The output looks like this:



    <html><head><meta http-equiv="refresh" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


    This means that my browser is not sure what encoding to use, and does not display the accents correctly.



    Loading Déjà vu - Wikipedia...



    This, on the other hand, properly shows the accents:



    <html><head><meta http-equiv="refresh" charset="utf-8" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


    Loading Déjà vu - Wikipedia...



    I've reduced it down as minimal example as I can, and it still occurs.






    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="utf-8">
    <title>title</title>
    <script type='text/javascript'>
    document.addEventListener('DOMContentLoaded', function() {
    var newHTML = document.createElement('html');
    var newHead = document.createElement('head');
    var newMeta = document.createElement('meta');
    newMeta.charset = "utf-8";
    newHead.appendChild(newMeta);
    newHTML.append(newHead);
    var tempAnchor = window.document.createElement('a');
    HTMLBlob = new Blob([newHTML.outerHTML], {
    type: 'text/html; charset=UTF-8'
    });
    tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
    tempAnchor.download = "minimal-output.html"
    tempAnchor.style.display = 'none';
    document.body.appendChild(tempAnchor);
    tempAnchor.click();
    document.body.removeChild(tempAnchor);

    });
    </script>
    </head>

    <body>
    </body>

    </html>





    Here is the output:



    <html><head><meta></head></html>


    This occurs in both Firefox 63.0 and Chromium 70.0. Here is a link to the Git repo:



    https://github.com/nbeaver/stackoverflow_question_2018-11-07



    How can I preserve the charset attribute of an HTML blob?










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am generating a client-side HTML redirect like this:



      <!DOCTYPE html>
      <html lang="en">
      <head>
      <meta charset="utf-8">
      <title>Déjà vu - Wikipedia</title>
      <script type='text/javascript'>
      document.addEventListener('DOMContentLoaded', function () {
      var newHTML = document.createElement('html');
      var newHead = document.createElement('head');
      var newMeta = document.createElement('meta');
      var newTitle = document.createElement('title');
      newTitle.text = "Déjà vu - Wikipedia";
      newMeta.httpEquiv = "refresh";
      newMeta.charset = "utf-8";
      newMeta.content = "30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu";
      var newBody = document.createElement('body');
      var newPar = document.createElement('p');
      var newText = document.createTextNode('Loading Déjà vu - Wikipedia...');
      newPar.appendChild(newText);
      newBody.appendChild(newPar);
      newHead.appendChild(newMeta);
      newHead.appendChild(newTitle);
      newHTML.append(newHead);
      newHTML.append(newBody);
      var tempAnchor = window.document.createElement('a');
      HTMLBlob = new Blob([newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});
      tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
      tempAnchor.download = "example-redirect.html"
      tempAnchor.style.display = 'none';
      document.body.appendChild(tempAnchor);
      tempAnchor.click();
      document.body.removeChild(tempAnchor);

      });
      </script>
      </head>
      <body>
      </body>
      </html>


      However, I am losing the charset meta attribute when I do so. The output looks like this:



      <html><head><meta http-equiv="refresh" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


      This means that my browser is not sure what encoding to use, and does not display the accents correctly.



      Loading Déjà vu - Wikipedia...



      This, on the other hand, properly shows the accents:



      <html><head><meta http-equiv="refresh" charset="utf-8" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


      Loading Déjà vu - Wikipedia...



      I've reduced it down as minimal example as I can, and it still occurs.






      <!DOCTYPE html>
      <html lang="en">

      <head>
      <meta charset="utf-8">
      <title>title</title>
      <script type='text/javascript'>
      document.addEventListener('DOMContentLoaded', function() {
      var newHTML = document.createElement('html');
      var newHead = document.createElement('head');
      var newMeta = document.createElement('meta');
      newMeta.charset = "utf-8";
      newHead.appendChild(newMeta);
      newHTML.append(newHead);
      var tempAnchor = window.document.createElement('a');
      HTMLBlob = new Blob([newHTML.outerHTML], {
      type: 'text/html; charset=UTF-8'
      });
      tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
      tempAnchor.download = "minimal-output.html"
      tempAnchor.style.display = 'none';
      document.body.appendChild(tempAnchor);
      tempAnchor.click();
      document.body.removeChild(tempAnchor);

      });
      </script>
      </head>

      <body>
      </body>

      </html>





      Here is the output:



      <html><head><meta></head></html>


      This occurs in both Firefox 63.0 and Chromium 70.0. Here is a link to the Git repo:



      https://github.com/nbeaver/stackoverflow_question_2018-11-07



      How can I preserve the charset attribute of an HTML blob?










      share|improve this question















      I am generating a client-side HTML redirect like this:



      <!DOCTYPE html>
      <html lang="en">
      <head>
      <meta charset="utf-8">
      <title>Déjà vu - Wikipedia</title>
      <script type='text/javascript'>
      document.addEventListener('DOMContentLoaded', function () {
      var newHTML = document.createElement('html');
      var newHead = document.createElement('head');
      var newMeta = document.createElement('meta');
      var newTitle = document.createElement('title');
      newTitle.text = "Déjà vu - Wikipedia";
      newMeta.httpEquiv = "refresh";
      newMeta.charset = "utf-8";
      newMeta.content = "30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu";
      var newBody = document.createElement('body');
      var newPar = document.createElement('p');
      var newText = document.createTextNode('Loading Déjà vu - Wikipedia...');
      newPar.appendChild(newText);
      newBody.appendChild(newPar);
      newHead.appendChild(newMeta);
      newHead.appendChild(newTitle);
      newHTML.append(newHead);
      newHTML.append(newBody);
      var tempAnchor = window.document.createElement('a');
      HTMLBlob = new Blob([newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});
      tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
      tempAnchor.download = "example-redirect.html"
      tempAnchor.style.display = 'none';
      document.body.appendChild(tempAnchor);
      tempAnchor.click();
      document.body.removeChild(tempAnchor);

      });
      </script>
      </head>
      <body>
      </body>
      </html>


      However, I am losing the charset meta attribute when I do so. The output looks like this:



      <html><head><meta http-equiv="refresh" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


      This means that my browser is not sure what encoding to use, and does not display the accents correctly.



      Loading Déjà vu - Wikipedia...



      This, on the other hand, properly shows the accents:



      <html><head><meta http-equiv="refresh" charset="utf-8" content="30;url=https://en.wikipedia.org/wiki/D%C3%A9j%C3%A0_vu"><title>Déjà vu - Wikipedia</title></head><body><p>Loading Déjà vu - Wikipedia...</p></body></html>


      Loading Déjà vu - Wikipedia...



      I've reduced it down as minimal example as I can, and it still occurs.






      <!DOCTYPE html>
      <html lang="en">

      <head>
      <meta charset="utf-8">
      <title>title</title>
      <script type='text/javascript'>
      document.addEventListener('DOMContentLoaded', function() {
      var newHTML = document.createElement('html');
      var newHead = document.createElement('head');
      var newMeta = document.createElement('meta');
      newMeta.charset = "utf-8";
      newHead.appendChild(newMeta);
      newHTML.append(newHead);
      var tempAnchor = window.document.createElement('a');
      HTMLBlob = new Blob([newHTML.outerHTML], {
      type: 'text/html; charset=UTF-8'
      });
      tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
      tempAnchor.download = "minimal-output.html"
      tempAnchor.style.display = 'none';
      document.body.appendChild(tempAnchor);
      tempAnchor.click();
      document.body.removeChild(tempAnchor);

      });
      </script>
      </head>

      <body>
      </body>

      </html>





      Here is the output:



      <html><head><meta></head></html>


      This occurs in both Firefox 63.0 and Chromium 70.0. Here is a link to the Git repo:



      https://github.com/nbeaver/stackoverflow_question_2018-11-07



      How can I preserve the charset attribute of an HTML blob?






      <!DOCTYPE html>
      <html lang="en">

      <head>
      <meta charset="utf-8">
      <title>title</title>
      <script type='text/javascript'>
      document.addEventListener('DOMContentLoaded', function() {
      var newHTML = document.createElement('html');
      var newHead = document.createElement('head');
      var newMeta = document.createElement('meta');
      newMeta.charset = "utf-8";
      newHead.appendChild(newMeta);
      newHTML.append(newHead);
      var tempAnchor = window.document.createElement('a');
      HTMLBlob = new Blob([newHTML.outerHTML], {
      type: 'text/html; charset=UTF-8'
      });
      tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
      tempAnchor.download = "minimal-output.html"
      tempAnchor.style.display = 'none';
      document.body.appendChild(tempAnchor);
      tempAnchor.click();
      document.body.removeChild(tempAnchor);

      });
      </script>
      </head>

      <body>
      </body>

      </html>





      <!DOCTYPE html>
      <html lang="en">

      <head>
      <meta charset="utf-8">
      <title>title</title>
      <script type='text/javascript'>
      document.addEventListener('DOMContentLoaded', function() {
      var newHTML = document.createElement('html');
      var newHead = document.createElement('head');
      var newMeta = document.createElement('meta');
      newMeta.charset = "utf-8";
      newHead.appendChild(newMeta);
      newHTML.append(newHead);
      var tempAnchor = window.document.createElement('a');
      HTMLBlob = new Blob([newHTML.outerHTML], {
      type: 'text/html; charset=UTF-8'
      });
      tempAnchor.href = window.URL.createObjectURL(HTMLBlob);
      tempAnchor.download = "minimal-output.html"
      tempAnchor.style.display = 'none';
      document.body.appendChild(tempAnchor);
      tempAnchor.click();
      document.body.removeChild(tempAnchor);

      });
      </script>
      </head>

      <body>
      </body>

      </html>






      javascript html character-encoding meta-tags






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 7 at 21:17

























      asked Nov 7 at 21:08









      Nathaniel M. Beaver

      225420




      225420
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          +50










          HTML <meta> elements currently don't have a dedicated DOM interface for setting the charset attribute. See the specification: https://www.w3.org/TR/html5/document-metadata.html#the-meta-element.



          newMeta.charset = "utf-8"; only adds your own arbitrary charset property to the newMeta JavaScript object. This arbitrary property has no effect on the charset HTML attribute of the <meta> element.



          You need to set the charset attribute like this: newMeta.setAttribute("charset", "utf-8");






          share|improve this answer




























            up vote
            0
            down vote













            According to this answer Set charset meta tag with JavaScript




            You can't set the charset content attribute by setting the charset
            property because they don't reflect each other. In fact there is no
            property that reflects the charset content attribute. [...] The character set is established by the parser, so constructing the meta element in JavaScript after the HTML has been parsed will have no effect on the character set of the document at all.




            However, in your case, prepending an UTF-8 BOM header to the blob might do the trick.



            HTMLBlob = new Blob(["ufeff",newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});





            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53197847%2fpreserve-charset-attribute-of-meta-tag-in-html-blob%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              +50










              HTML <meta> elements currently don't have a dedicated DOM interface for setting the charset attribute. See the specification: https://www.w3.org/TR/html5/document-metadata.html#the-meta-element.



              newMeta.charset = "utf-8"; only adds your own arbitrary charset property to the newMeta JavaScript object. This arbitrary property has no effect on the charset HTML attribute of the <meta> element.



              You need to set the charset attribute like this: newMeta.setAttribute("charset", "utf-8");






              share|improve this answer

























                up vote
                1
                down vote



                +50










                HTML <meta> elements currently don't have a dedicated DOM interface for setting the charset attribute. See the specification: https://www.w3.org/TR/html5/document-metadata.html#the-meta-element.



                newMeta.charset = "utf-8"; only adds your own arbitrary charset property to the newMeta JavaScript object. This arbitrary property has no effect on the charset HTML attribute of the <meta> element.



                You need to set the charset attribute like this: newMeta.setAttribute("charset", "utf-8");






                share|improve this answer























                  up vote
                  1
                  down vote



                  +50







                  up vote
                  1
                  down vote



                  +50




                  +50




                  HTML <meta> elements currently don't have a dedicated DOM interface for setting the charset attribute. See the specification: https://www.w3.org/TR/html5/document-metadata.html#the-meta-element.



                  newMeta.charset = "utf-8"; only adds your own arbitrary charset property to the newMeta JavaScript object. This arbitrary property has no effect on the charset HTML attribute of the <meta> element.



                  You need to set the charset attribute like this: newMeta.setAttribute("charset", "utf-8");






                  share|improve this answer












                  HTML <meta> elements currently don't have a dedicated DOM interface for setting the charset attribute. See the specification: https://www.w3.org/TR/html5/document-metadata.html#the-meta-element.



                  newMeta.charset = "utf-8"; only adds your own arbitrary charset property to the newMeta JavaScript object. This arbitrary property has no effect on the charset HTML attribute of the <meta> element.



                  You need to set the charset attribute like this: newMeta.setAttribute("charset", "utf-8");







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 12 at 15:03









                  Petr Srníček

                  69427




                  69427
























                      up vote
                      0
                      down vote













                      According to this answer Set charset meta tag with JavaScript




                      You can't set the charset content attribute by setting the charset
                      property because they don't reflect each other. In fact there is no
                      property that reflects the charset content attribute. [...] The character set is established by the parser, so constructing the meta element in JavaScript after the HTML has been parsed will have no effect on the character set of the document at all.




                      However, in your case, prepending an UTF-8 BOM header to the blob might do the trick.



                      HTMLBlob = new Blob(["ufeff",newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});





                      share|improve this answer



























                        up vote
                        0
                        down vote













                        According to this answer Set charset meta tag with JavaScript




                        You can't set the charset content attribute by setting the charset
                        property because they don't reflect each other. In fact there is no
                        property that reflects the charset content attribute. [...] The character set is established by the parser, so constructing the meta element in JavaScript after the HTML has been parsed will have no effect on the character set of the document at all.




                        However, in your case, prepending an UTF-8 BOM header to the blob might do the trick.



                        HTMLBlob = new Blob(["ufeff",newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});





                        share|improve this answer

























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          According to this answer Set charset meta tag with JavaScript




                          You can't set the charset content attribute by setting the charset
                          property because they don't reflect each other. In fact there is no
                          property that reflects the charset content attribute. [...] The character set is established by the parser, so constructing the meta element in JavaScript after the HTML has been parsed will have no effect on the character set of the document at all.




                          However, in your case, prepending an UTF-8 BOM header to the blob might do the trick.



                          HTMLBlob = new Blob(["ufeff",newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});





                          share|improve this answer














                          According to this answer Set charset meta tag with JavaScript




                          You can't set the charset content attribute by setting the charset
                          property because they don't reflect each other. In fact there is no
                          property that reflects the charset content attribute. [...] The character set is established by the parser, so constructing the meta element in JavaScript after the HTML has been parsed will have no effect on the character set of the document at all.




                          However, in your case, prepending an UTF-8 BOM header to the blob might do the trick.



                          HTMLBlob = new Blob(["ufeff",newHTML.outerHTML], {type: 'text/html; charset=UTF-8'});






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 10 at 23:39









                          Eray Balkanli

                          3,83041943




                          3,83041943










                          answered Nov 10 at 23:32









                          Dan D.

                          3247




                          3247






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53197847%2fpreserve-charset-attribute-of-meta-tag-in-html-blob%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Florida Star v. B. J. F.

                              Danny Elfman

                              Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues