Home > Web Front-end > JS Tutorial > body text

Solution to vs2003 js file encoding problem_javascript skills

WBOY
Release: 2016-05-16 18:32:04
Original
954 people have browsed it

Because the ASSscript file contains Chinese comments or Chinese alert ("Chinese information"), the referenced js file is invalid or the pop-up information is garbled. If you put the js file method directly in the .aspx file, there will be no problem. This problem is caused by text encoding in .net. We need to save the ASSscript.js file as UTF-8 or other Unicode encoding, and the problem will be solved. The original text encoding is gb2312 because there are Chinese characters in it.

How to perform encoding conversion?
1. Open it with Notepad and select Unicode encoding when saving;
2. Select Save As directly in vs. There is a small arrow on the right side of the save button, click it, then select the encoding method and save it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template