On Wed, Apr 24, 2002 at 12:06:38AM +0800, malix wrote: > Hi, I have tested my BMP EJB in JBoss. > But how can I make it to support Chinese Charset? > > 1) I tried to set postgresql-services.xml, > <!--config-property> > <config-property-name>charset</config-property-name> > <config-property-type>java.lang.String</config-property-type> > <config-property-value>GBK</config-property-value> > </config-property--> > > but it could not recognize this property (in JDBC I can use it).
Shouldn't the charset to use by Postgres be set in the postgres configuration (pg_hba.conf, perhaps)? > 2) I also tried to transfer the returned String with > new String(MyEjb.getName().toBytes(),"GBK") > it still give back "????" If it's not being stored in the database correctly, then it won't come out properly. Is postgres configured to use GBK? Cheers, Simon -- "The bad reputation UNIX has gotten is totally undeserved, laid on by people who don't understand, who have not gotten in there and tried anything." -- Jim Joyce, former computer science lecturer at the University of California _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
