Skip site navigation (1) Skip section navigation (2)

Re: problem with Chinese

From: root <malix(at)263(dot)net>
To: root <malix(at)263(dot)net>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: problem with Chinese
Date: 2001-10-18 15:39:46
Message-ID: 3BCEF7C2.8070706@263.net (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi all,
I am sorry , I have got the solution.
I should write it so:
 Class.forName("org.postgresql.Driver");
 Properties info=new Properties();
 info.put("user","postgres");
 info.put("password","");
 info.put("charSet","GBK");
 Connection dbconn=DriverManager.getConnection(
 "jdbc:postgresql:redauto",info);
 Statement st = dbconn.createStatement();
 String str_sql="SELECT * FROM customer where cname='"+t1+"'";
 System.out.println(str_sql);
 ResultSet rs = st.executeQuery(str_sql);

then all Chinese query critery is in order.

but the make error still harass me. if anyone can help me?

> 
> 
> 
> 
> I am shade to have disturbed you.
> you are kind for me if you can give any sugestion.
> Thanks very much.
> 
> malix
> shanghai china
> 



In response to

pgsql-jdbc by date

Next:From: Barry LindDate: 2001-10-18 16:46:46
Subject: Re: JDBC PostgreSQhelL
Previous:From: rootDate: 2001-10-18 14:32:38
Subject: complementarity for my JDBC Problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group