myesn

myEsn2E9

hi
github

Garbled Chinese characters in ABP JavaScript file

The encoding used for web pages is utf-8, and the encoding of js files is gb2312. When loading js using the <script> tag without specifying the charset, the browser uses the encoding of the web page as the default encoding for the js file. This results in loading the gb2312 encoded js file in utf-8 format, ultimately causing garbled text.

Solution: To save a file with encoding

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.