最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
JSP代码(添加,查询)
时间:2008-01-12 编辑:简简单单 来源:一聚教程网
JSP技术:
----------------------------------------
public class ISOtoGb2312
{
public static String convert( String str )
{
try
{
byte<> bytesStr=str.getBytes( "ISO-8859-1" ) ;
return new String( bytesStr, "gb2312" ) ;
}
catch( Exception ex)
{
return str ;
}
}
}
-------------------------------------------------------------------
<%@ page contentType="text/html; charset=GB2312" %>
输入数据
----------------------------------------
public class ISOtoGb2312
{
public static String convert( String str )
{
try
{
byte<> bytesStr=str.getBytes( "ISO-8859-1" ) ;
return new String( bytesStr, "gb2312" ) ;
}
catch( Exception ex)
{
return str ;
}
}
}
-------------------------------------------------------------------
<%@ page contentType="text/html; charset=GB2312" %>
输入数据
请输入数据:
-
上一个: 我的jsp mini探针
相关文章
- js 查询表格内容并加亮相应内容单元格 07-19
- jsp 关键字模糊查询代码 07-06
- jsp 关键字:查询,事务,粒度 09-04
- jsp+access 模糊查询 06-12
- SpringBoot测试配置属性与web启动环境解析 10-24
- vue中将el-switch值true、false改为number类型的1和0解析 10-24