如果你常常用 Eclipse 或者 MyEclipse ,那你就会跟我一样,会在保存页面的时候经常遇到这样的提示
some character can not mapped using "iso-8859-1" character encoding ......
以前上学的时候,老师讲过类似的解决办法,就是
1.右键选种 该项目,或该文件
2.点击 properties ,看到左边 第一个 选项 info 了吧。
左边就是该选项的详细信息
3.更改里面的 Text File Encoding
选择 other 里面的 utf-8 (推荐喽)
然后ok了。
以前总是编译一些java源文件或者 jsp 文件。好像这个问题也都能解决
但是,今天用 MyEclipse 编写了一个后缀名为 .js 的文件,又碰到了这个问题,就发现这个方法不再管用了
上网google了下,,(可真是要感激google啊)发现了其他的解决之道,尝试后,OK了,记录到这里,跟大家共勉。
方法一: 使用eclipse的jinto插件编辑,会自动调用java的native2ascii把文件转码。
方法二: 1. Eclipse-->Preferences..(MyEclipse --> Window -->Preferences:)
2. 在“type filter text“的框框里输入”Content Types
3. 输入完后,Eclipse 会自动进行查找,然后会在右边显示出 Content Types 的属性
4. 点击右边的Text,选择 Java Properties File,看一下 下面的两个选项
<1>:File associatios: ----- 看看里面有没有 你需要的文件类型,
默认的是*.porperties(locked)
我需要的*.js ,所以这时点击 Add 按钮,自己添写file type,
我写的是 *.js 哦,点击ok
<2>:Default encoding: ----- 这里默认的值不是utf-8,
也是需要自己更改,删除掉原来的,写上
你需要的,然后点击Update ,就好了。
这里我只尝试 方法二,所以也写得比较详细(呵呵,应该说改的比较详细,因为是改别的前辈的)。
有朋友一定喜欢方法一的,可以自己尝试下。
相关推荐
有时struts资源文件添加中文保存时会eclipse出现Some characters cannot be mapped using 'ISO-8859-1' character encoding错误不能保存 解决办法
资源来自pypi官网。 资源全名:mapped_config-2.34-py2-none-any.whl
Simulating planar reflection using two-pass rendering and texture mapping 1. There ‘s a table with flat rectangular semi-reflective table-top in the 3D scene 2. On/Around the table are some 3D ...
映射国家语言代码具有相应语言的国家/地区的哈希值和具有相应国家/地区的语言的哈希值。... ISO 3166-1 和 639-1 我在一个项目中需要这个,但在网络上的任何地方都找不到它,所以我做了一些爬行并自己映射了它。
@nestjs/graphql和@nestjs/swagger软件包使用的映射类型模块。 安装 $ npm i --save @nestjs/mapped-types 快速开始 构建功能时,在基本实体类型上构建变体通常很有用。 这种变体的一个很好的例子是数据传输对象...
概述 软件包 类 使用 树 已过时 索引 帮助 上一个类 下一个类 框架 无框架 所有类 摘要: 嵌套 | 字段 | 构造方法 | 方法 详细信息: 字段 | 构造方法 | 方法 ---------------------------------------------...
MemoryMappedFile 使用 C# 内存中分配一大块地址. 前边分配一个用与共同配置用 后边N个结构体 for循环建 一般用到此问题,两本程序 一个读一个写 循环读写 ----2015/09/24 Lyndon 上海----
go-mapped-csv 类似于stdlib的encoding / csv,不同之处在于它根据传递的列编写映射。 查看。 执照 麻省理工学院
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. -------------------------------------------------------------------------------...
mytabis 报错 Mapped Statements collection does not contain value for
MDB: A Memory-Mapped Database and Backend for OpenLDAP
FNT -- OpenGL texture-mapped font Library. PW -- A minimalist windowing library. PSL -- A C-like scripting language. SSG -- A Simple Scene Graph API built on top of OpenGL. NET -- Some Networking ...
Mapped Input/Output Operations 3.6.3 Memory Mapped I/O 3.6.4 DMA Exercises 3.6.5 Interrupt Driven I/O Exercises 3.6.6 Machine Language Programming & Instruction Encoding Exercises 3.6.7...
k-space data can also be mapped to low-rank matrices when the image has limited spatial support or slowly varying phase. Based on this, we develop a novel and flexible framework for constrained image ...
-rotate <deg> rotate graphical output some deg left (only PXA LCD) -vga [std|cirrus|vmware|qxl|xenfb|none] select video card type -full-screen start in full screen -g WxH[xDEPTH] Set the initial ...
Memory-Mapped Files for Qualcomm Brew By Ray Rischpater
fields at the end of some of the subtables. The disassembler now emits a comment if a buffer appears to be a ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at...
method is based on eigenimages calculated from edge fi ltered character images, which enables compact feature vectors that can be computed rapidly. A system for visualizing the entire font ...
by wavelet packet transformation and then mapped into the critical bands. According to the audio masking threshold, the embedding amplitude in each subband can be determined. And then, the adjustment ...