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

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
WordPress大学
WordPress大学
小众软件
小众软件
Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
A
About on SuperTechFans
月光博客
月光博客
F
Fortinet All Blogs
宝玉的分享
宝玉的分享
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
Jina AI
Jina AI
博客园 - 聂微东
Schneier on Security
Schneier on Security
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
N
News | PayPal Newsroom
PCI Perspectives
PCI Perspectives
Last Week in AI
Last Week in AI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog
aimingoo的专栏
aimingoo的专栏
P
Privacy International News Feed
Martin Fowler
Martin Fowler
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
NISL@THU
NISL@THU
Know Your Adversary
Know Your Adversary
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 叶小钗
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
S
Security @ Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Vulnerabilities – Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
IT之家
IT之家
B
Blog RSS Feed

博客园 - xshy

11个炫目的免费PSD格式网站模板 推荐20个免费的icon图标集给web开发者 分享35个漂亮的苹果Logo壁纸 PPT模板欣赏及免费下载之商务、教育、科技类 50个免费的wordpress模板下载 7个工具助你在android手机上隐藏图片和视频 解决selenium-RC无法启动firefox浏览器进行java测试脚本的问题 使用loadrunner做性能测试 经验总结二 使用loadrunner做性能测试 经验总结一 Web Application Stress Tool入门 一个U盘搞定Windows XP系统安装(http://www.wss123.net/wsso/20100815_72.html) 办公室电脑从业者多吃β胡萝卜素 在ArcGIS 10中轻松实现将应用移植到云计算平台 什么是CDN?CDN的用处是什么?有哪些著名的CDN? - xshy - 博客园 jQuery常见问题总结 - xshy - 博客园 u盘中毒后文件后缀变为exe,杀毒后文件被隐藏之解决办法(转载) java数据结构和算法——学习五 java数据结构和算法——学习四 java数据结构和算法——学习三
selenium中文编码问题
xshy · 2011-05-27 · via 博客园 - xshy

初次使用selenium-RC,发现在页面input中如果输入中文,则提交到后台web服务器并入库后,再次在网页中读出该字段的信息,竟然为乱码。

汗,乱码问题真是无处不在。后来经查找资料发现,有人通过使用jvm的encoding参数解决了这个问题。于是经过一番试验,问题果然在于selenium-server的启动参数上,

最开始用 java -jar selenium-server.jar,未加任何参数,结果就出现乱码问题,加上-Dfile.encoding="Unicode" 参数则问题解决,注意是Unicode,经测试UTF-8也不行,不知是否和我操作系统的字体有关,我是win7操作系统。

解决乱码的完整启动命令行 :

java -jar selenium-server.jar -Dfile.encoding="Unicode"