The JavaScript alert () function is a function for entering hints, but today when using alert () prompts Chinese garbled, pinyin, what is no problem ah, I found a solution in the forum, below to share with you.
Solution One:
Copy Code code as follows:
Echo ' <meta http-equiv= ' Content-type "content=" text/html; Charset=utf-8 "/> '";
Echo ' <script type= "Text/javascript" >alert ("Add Success") </script> ';
Solution One:
If you're using an external call,
Copy Code code as follows:
<script language= "javascript" type= "Text/javascript" src= "Ntkoocx.js" ></script>
If JS and page encoding does not count one also may appear garbled, the solution is
Charset= "gb2312" added to JS
Copy Code code as follows:
<script charset= "gb2312" language= "JavaScript" type= "Text/javascript" src= "Ntkoocx.js" ></script>
The problem has been solved.