xmlhttprequest



  • Can you tell me, please, how do we put UTF-8 in the xmlhttprequest to send a request to a keel? In the server logs, these are: "name"?

            var xhr = new XMLHttpRequest();
            xhr.open("POST", "/registration",false);
            xhr.send(formData);
    


  • Make sure:

    (1) Your files and violators are established in UTF-8,

    (2) Your server gives these files to UTF-8

    (3) You see the web server logs in the terminal that support UTF-8

    (4) On your server, support is provided to UTF-8.

    You can download web server logs, open them in the text editor and see what code he recognized them. If everything is read and the editor shows UTF-8 coding, then you have a terminal problem.

    Contemporary default browsers work in UTF-8, so first check this out, and if you have a specific case where you're sending requests from a page in code cp1251, you might need to use the @Alex Krass.

    Right here. https://tomcat.apache.org/tomcat-8.0-doc/logging.html e.g., it is stated that, by default, tomcat retains logic in the system code, there is a log4j switching instruction from utf8




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2