关于ORACLA字符转换问题
agame 2003-03-14 09:29:41 用JSP向ORACLA数据库中提交中文,数据库中显示的是????。数据库使用的文字编码是
american_america.us7ascii。
我以前有写一个字符转换函数:
public class asctostr {
public String getStr(String str)
{
try
{
String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
String temp=new String(temp_t);
return temp;
}
catch(Exception e)
{
}
return "null";
}
}
是SQL SERVER用的。我想只要改一下 ISO8859-1 就能用来往ORACLE里提交中文了吧。请教高手,我应该如何改呢?