zoukankan      html  css  js  c++  java
  • 设置myeclipse新建jsp文件默认编码为UTF-8

    有三个地方需要改编码设置:

    1.

    window--》preference--》general--》contenttype

    然后在content types中展开每一个子项,并在Default encoding中输入“UTF-8”,再点Update

     

    2.

    window--》preference--》MyEclipse--》Files and Editor

    将每个子项的“Encoding”改为“ISO 10645/Unicode(UTF-8)”或"Chinese,National standard",点Applay,

    以后创建的文档类型都是UTF-8的格式!

    3.为了使项目中不会出现extjs中文乱码的问题,建议把myeclipse的workspace的设置改为UTF-8的编码

    window--》preference--》general--》workspace--》text files encoding--》other 选择UTF-8

    这样在加载js代码的时候js的代码就和jsp的编码相同就不会出现乱码,或是extjs效果不能显示的问题了

    (MyEclipse6.0的版本是window--》preference--》myeclipse--》files and Editors 下面的css、dtd、html、js、jsp的Ecoding改为UTF-8)

  • 相关阅读:
    webservice
    AppDomain (转)
    Apache和Nginx防盗链的几种配置方法
    优化PHP代码的40条建议
    file_get_contents无法请求https连接的解决方法
    PHP SPL
    Ubuntu 查看系统信息
    PHP导出Excel
    mysql集群
    配置yum源的两种方法
  • 原文地址:https://www.cnblogs.com/wll-cn/p/5849752.html
Copyright © 2011-2022 走看看