myeclipse modify the default encoding javascript

2010-04-18  来源:本站原创  分类:Java  人气:206 

Open a js file (which contains Chinese translations), edited save time, suddenly reminded of the following error:

Save could not be completed.

Reason:

Some characters cannot be mapped using "ISO-8859-1" character encoding. Either change the encoding or remove the characters which are not supported by the "ISO-8859-1" character encoding.

Obviously, because the js file inside a result of Chinese characters, but I set up inside the project properties to utf-8 encoding, and use Notepad to open the save as utf-8 encoding is still not solve the problem. Later, through access to online information, the original js file by default is the ISO8859-1 encoding, the solution is as follows: In the Window menu to find something to Preferences, in the open window on the left to find General -> Content Type, and then on the right side of the window which can be seen to text, point to open a small triangle in front, then find the javascript, in the bottom of the Default Encoding which will be ISO8859-1 to UTF-8, and then click on the right of the Update, and then click OK and save it.

相关文章
  • myeclipse modify the default encoding javascript 2010-04-18

    Open a js file (which contains Chinese translations), edited save time, suddenly reminded of the following error: Save could not be completed. Reason: Some characters cannot be mapped using "ISO-8859-1" character encoding. Either change the enco

  • Modify the Eclipse / MyEclipse project's default encoding 2010-06-05

    Chinese operating system should be the reason, eclipse the default encoding of new projects is GBK, out of consideration of encoding support, the best team uniform requirements for UTF-8 encoding for development. Modify the configuration of eclipse,

  • Myeclipse modify the default Open jsp xml file 2010-10-21

    Myeclipse default way to open the file jsp design, each double-click or use Ctrl + Shift + R to open will use this to open, too slow and many times lead to Myeclipse hang. You can convert the following ways you want to open ways, as follows: Myeclips

  • Modify the default encoding 2011-03-20

    1, need to login as root user can view the database encoding (as root landing command:> mysql-u root-p, then enter the root password twice), check the database encoding command: > Show variables like 'character%'; +--------------------------+-------

  • MyEclipse modify the default way to open the file 2011-05-12

    The default is to use jsp design, double-click will use this time to open, too slow I would like to replace the double is classic jsp editor how to set? -------------------------------------------------- ------------------------------ preferences-> G

  • (Transfer) MyEclipse is obliged to do after the installation - such as changing the default encoding 2010-11-01

    MyEclipse is obliged to do after the installation - such as changing the default encoding Write in the MyEclipse Web Project, there are 2 places need to change the encoding settings: 1. window -> preference -> general -> content type Then <Con

  • Modify the Eclipse / MyEclipse projects default encoding 2010-06-05

    Chinese operating system should be the reason, eclipse the default encoding of new projects is GBK, out of consideration of encoding support, the best team uniform requirements for UTF-8 encoding for development. Modify the configuration of eclipse,

  • MyEclipse js default encoding 2010-12-24

    In the Window menu to find something to Preferences, open the window on the left to find General -> Content Type, and then on the right side of the window can be seen inside the text, opening the front of the small triangle, then find the javascript,

  • to modify the default linux mysql encoding problem appears invalid 2011-05-26

    According to the online description. Modify the my.cnf file content 1 to find the cnf file location mysql find /-iname *. cnf 2. Just copy one to the / etc / my.cnf - attention; I am not the original copy here. But in the / etc / mysql / my.cnf which

  • Change: how to use eclipse to achieve bulk modify the file encoding 2010-05-29

    Original Address: http://dev.firnow.com/course/3_program/java/javashl/2008929/146773.html In eclipse + MyEclipse environment, open a jsp file, often find Chinese characters can not be displayed, right-click view the file properties, find the file att

  • Linux system in the script to set the default encoding 2010-08-03

    Add the following two sentences in the script, you can modify the system default encoding into UTF-8 export LC_ALL=zh_CN.UTF-8 export LANG=zh_CN.UTF-8

  • Set default encoding for the mysql database gbk, address Chinese garbled 2010-08-17

    Mysql To resolve Chinese garbled, it is best you get rid of the database's default encoding is normally such treatment: Installation directory in the mysql my.ini file: 57 to modify the line below: default-character-set = gbk 81 to modify the line be

  • mysql default encoding set gbk, address inquiries Chinese garbled dos problems under 2010-12-06

    We use the dos window command line login. Check out the results in Chinese, there will be garbled. To solve this problem is to set the mysql's default encoding. MySQL's default encoding is Latin1, does not support Chinese, so how to modify MySQL's de

  • Python set the system default encoding 2011-04-26

    python is installed, the default encoding is ascii, when the program appears in non-ascii encoding, python's treatment will often report that the wrong UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range (128)

  • TOMCAT's how to modify the default home page for your own projects 2011-07-28

    (Most appropriate) The most direct way is to delete the original Root folder under tomcat, will own the project changed its name to Root. My $ tomcat / webapps / directory under the built a myjsp the default directory as my website, there is a a.jsp

  • mysql default encoding set gbk, to solve the query dos Chinese garbled problem 2010-12-06

    We are using the dos window command line login. Check out the results available in Chinese, the problem will be garbled. Solution to this problem is to set the mysql default encoding. MySQL's default encoding is Latin1, does not support Chinese, so h

  • Change mysql default encoding 2010-12-31

    MySQL's default encoding is Latin1, does not support Chinese, so how to modify MySQL's default encoding, Here in UTF-8 as an example to illustrate. Here is one of the most simplest and most thorough method: Windows System 1, stop the MySQL service 2,

  • Farewell garbled: Modify the default character set of MySQL database 2011-02-21

    In my last article was mentioned, the site will be garbled because has been found, because of Mysql database character set is not uniform! Therefore, to solve the garbage problem, as long as the unity of Mysql database character set on the play, ever

  • myEclipse modify the code but does not work 2010-03-29

    In doing a web project, when found in myEclipse modify the code, but having no effect, the compiler has been running that version of the previous results. For example, I have the original program inside System.out.println ( "aaaa") was revised t

  • myeclipse modify the java files, the deployment does not generate the class file 2010-04-07

    Two days before the beginning, myeclipse modify the java files, the deployment will not generate a new class file to find information on the Internet, or not resolved. Today, reinstall the myeclipse, for a tomcat, the problem also exists. Accidentall