Skip to content

Firefox: The character encoding of the HTML document was not declared #1

Closed

Description

@kavaro

I just love webpack ...

Small issue I am sure many people will walk into and that is super easy to fix once and for all,
in firefox, webpack-dev-server generates the following warning whenever the page reloads:

"The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must to be declared in the document or in the transfer protocol."

To fix this:

in the head of client/live.html add:

<meta charset="utf-8"/>

Activity

  1. awanjila commented on Dec 3, 2015

    @awanjila

    Lol! Thank you..

  2. added a commit that references this issue on Jan 11, 2016
  3. Davecalix commented on Feb 7, 2017

    @Davecalix

    Thanks!...

  4. rwever-316 commented on Aug 23, 2017

    @rwever-316

  5. DharshanJS commented on Dec 15, 2017

    @DharshanJS

    Thanks!

  6. Evan2804 commented on Mar 12, 2018

    @Evan2804

    Thanks.

  7. sudosoul commented on Jul 27, 2018

    @sudosoul

    +1

  8. LandonFerg commented on Aug 23, 2018

    @LandonFerg

    Thanks!

  9. ziya5635 commented on Sep 30, 2018

    @ziya5635

    thanks.

  10. gorakhnathlad commented on Oct 16, 2018

    @gorakhnathlad

    Thanks.

  11. added a commit that references this issue on Feb 1, 2019
  12. BouzianeMohammedAmin commented on Mar 21, 2019

    @BouzianeMohammedAmin

    thanks ;)

  13. arihajix commented on Mar 28, 2019

    @arihajix

    Cool! Tnx pal!

  14. DMTrooper3 commented on Apr 8, 2019

    @DMTrooper3

    Thank you 🐱‍🐉

  15. gisellevqz commented on Apr 25, 2019

    @gisellevqz

    it worked! Thanks for sharing

  16. mohammed1997010 commented on Aug 22, 2019

    @mohammed1997010

    lol man :D

  17. haddad142 commented on Mar 15, 2020

    @haddad142

    Thanks dude!

  18. geradseth commented on Jul 23, 2021

    @geradseth

    Didn't work for me I am using WebSocket class to connect to my server with index.php javascript code seems to alright I don't know what happen on my php file with html code like

    <title>PHP Chat With Mteule</title>
    Write Message to Send Here <textarea placeholder="Message is public don't abuse"></textarea>
    <script type = "text/javascript">
                var conn = new WebSocket('ws://192.168.1.116:2700');
                conn.onopen = function(e){
                    console.log("Connectio Established");
                    conn.send("I got in my Self as Agent");
                };
                conn.onmessage = function(e){
                    console.log(e.data);
                };
    
            </script>
        </footer>
    </body>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions