惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

量子位
Google DeepMind News
Google DeepMind News
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
NISL@THU
NISL@THU
T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
Cyberwarzone
Cyberwarzone
D
Docker
The Hacker News
The Hacker News
C
CERT Recently Published Vulnerability Notes
Vercel News
Vercel News
Project Zero
Project Zero
S
Schneier on Security
aimingoo的专栏
aimingoo的专栏
I
Intezer
腾讯CDC
M
MIT News - Artificial intelligence
Hugging Face - Blog
Hugging Face - Blog
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Vulnerabilities – Threatpost
G
Google Developers Blog
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
Arctic Wolf
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
Recent Announcements
Recent Announcements
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
T
Threatpost
Latest news
Latest news
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
The GitHub Blog
The GitHub Blog
T
Tor Project blog
P
Proofpoint News Feed

博客园 - guofu

Python爬虫之BeautifulSoap的用法 pip使用豆瓣的镜像源 Django Media URL 文件上传 配置 Android 中的 Service 全面总结 【转】IT 圈里有哪些经常被读错的词? Android开发的技术层次 ubuntu下安装oracle 网站框架策划时的小技巧--页面原型篇 中国电商价格欺诈何时休? Mac OS X上如何实现到Linux主机的ssh免登陆[forward] 25个必须记住的SSH命令[forward] 详细介绍ORACLE sqlplus命令(转) Oracle 数据库导入导出命令 "The test form is only available for requests from the local machine"解决方法 JAVA学习网站收集 Windows 如何在cmd命令行中查看、修改、删除与添加环境变量 Bugzilla安装过程 有关ant的faq Win7或Windows server 2008中IIS7支持ASP+Access解决方法
解决Eclipse中ISO8859-1 字符集的方法
guofu · 2013-02-18 · via 博客园 - guofu

第一种问题:

在写JSP时,里面面有涉及到数据库操作,当保存时就会弹出
save could not be completed
原因是some characters could not be mapped using iso8859-1

<%@ page language="java" pageEncoding="GBK"%>
设成GBK或UTF-8就可以了,只要他里面的支持中文就KO了

第二种问题:
用eclipse编写jsp页面或JAVA类的时候,直接在页面里输入汉字,保存的时候出现"字符不能匹配ISO-8859-1"的错误提示,因为ISO-8859-1是英文编码,不能识别汉字,我就想把它改为utf-8,可是我找不到能改变编码的地方,首先我打开工程的属性,在"info"里看到"Text file encoding"就世界把它改为utf-8,可是还是出现错误提示,搞了好半天还是搞不定它,就在网上找找看有没人遇到过这样的问题。对这个问题解答比较多的是在"edit"---"set encoding"(好像这个是为单独的文件临时设置编码),可是我在eclipse里没找到(我用的是3.2,不知道是不是这个原因),后来又找到一个解释:设置默认编码:
window-->preferences-->general-->editor-->text file encoding,
我打开perferences还是没有找到,狂晕~~~~~~~~~,
接着看看别的地方有没有设置编码的地方,
还是没有找到..........
 又回到perferences,觉得还是在这里可以解决,呵呵,问题还是出在这里,
我找到"General"--"Content Types",
右边有个树形的text,
展开找到"JSP",开始没发现,
那家伙躲在最低下...........,
大家不要像我粗心,
最低下有个"Default encoding",
里面默认的是"ISO-8859-1",
终于找到了,
删掉"ISO-8859-1"填上"UTF-8",
在点一下"update",
OK。再保存,
就没有错误了..............

 


本文来自CSDN博客:http://blog.csdn.net/xinew/archive/2010/08/06/5794386.aspx

from:

http://www.cnblogs.com/king1302217/archive/2011/04/18/2019994.html