<%
String Hello="欢迎光临!";
Byte []b=Hello.getBytes("ISO-8859-1");
Hello=new String(b);
out.print(Hello);
%>
JSP中文
Categories:
No TrackBacks
TrackBack URL: http://www.wujianrong.com/mt-tb.cgi/1336
1 Comment
Leave a comment
Categories
- 3G (61)
- AJAX (180)
- Apollo (2)
- CMS (26)
- CRM (11)
- DELPHI (31)
- FLEX (6)
- GOOGLE (364)
- HIBERNATE (35)
- J2EE (68)
- JAVA (230)
- JAVASCRIPT (75)
- JSP (46)
- LINUX (137)
- LUCENE (22)
- MYSQL (41)
- PATTERN (9)
- PHP (132)
- PYTHON (70)
- RUBY (13)
- SPRING (29)
- STRUTS (25)
- UE (21)
- WAP (19)
- WEB2.0 (125)
- WORDPRESS (12)
- XML (16)
- 人物 (84)
- 企业 (157)
- 其他 (38)
- 创投 (137)
- 商业 (1208)
- 增值 (15)
- 开源 (106)
- 技术 (267)
- 推广 (24)
- 搜索 (70)
- 新知 (2271)
- 生活 (330)
- 电商 (55)
- 算法 (19)
- 考试 (11)
- 职业 (28)
- 营销 (13)
- 资源 (329)
Monthly Archives
- August 2008 (62)
- July 2008 (145)
- June 2008 (122)
- May 2008 (136)
- April 2008 (207)
- March 2008 (216)
- February 2008 (132)
- January 2008 (166)
- December 2007 (176)
- November 2007 (200)
- October 2007 (266)
- September 2007 (172)
- August 2007 (213)
- July 2007 (173)
- June 2007 (167)
- May 2007 (215)
- April 2007 (261)
- March 2007 (313)
- February 2007 (164)
- January 2007 (93)
- December 2006 (120)
- November 2006 (144)
- October 2006 (196)
- September 2006 (88)
- August 2006 (84)
- July 2006 (142)
- June 2006 (62)
- May 2006 (63)
- April 2006 (114)
- March 2006 (51)
- February 2006 (106)
- January 2006 (84)
- December 2005 (62)
- November 2005 (41)
- October 2005 (16)
- September 2005 (23)
- August 2005 (37)
- July 2005 (49)
- June 2005 (78)
Pages
Search
About this Entry
This page contains a single entry by kevinwu published on November 6, 2006 2:53 PM.
JVM调优[转] was the previous entry in this blog.
web一些值得珍藏的代码 is the next entry in this blog.
Find recent content on the main index or look in the archives to find all content.

文件名存放在MySQL中,MySQL默认不支持中文
修改两处就可以让MySQL支持UTF8
在建表的"create table"语句最后加上"CHARACTER SET utf8"
在JDBC连接数据库的URL后加上参数"?useUnicode=true&characterEncoding=utf8"
这样中文数据就可以以UTF8的形式存放了。