Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Yogi" Subject: Re: Java Database connect Message-ID: X-Comment-To: comp.lang.java.databases Newsgroups: comp.lang.java.databases In-Reply-To: wrote: > On Nov 17, 5:30=A0pm, Sabine Dinis Blochberger > wrote: > > > > > Yogi wrote: > > > On Nov 17, 2:30 pm, Sabine Dinis Blochberger > > > wrote: > > > > Yogi wrote: > > > > > I am new to java and db connection pooling. I tried using Apache'= s > > > > > DBCP for connection pool for my web application. =A0Was trying to= do > > > > > similar thing for a standalone server (not a web based). =A0I tri= ed > > > > > using DBCP but i am getting strange results. =A0In my string vari= ables, > > > > > i am getting "???" as output whereas for int variables i am getti= ng > > > > > correct values when i m trying to read from database. > > > > > Make sure you use the correct encoding when connecting to the datab= se, > > > > for example, UTF-8. Refer to the manual of the database and JDBC dr= iver > > > > for specifics. > > > > Thanks Sabine for your reply. =A0I understand your point. But same DB > > > and jdbc driver is working fine when i m hitting this db from web > > > based application. =A0There I am getting correct values. =A0Anything > > > specific to non-web based servers? > > > This could be only a display problem then - on your other environment > > you don't have the correct locales installed. > > > You'll need to be more specific as to where and how you see the "???" i= n > > string values obtained from DB. > > > If you write them into a file, and open that with something that can't > > display multi-byte characters, you might get question marks. > > I am using Eclipse to execute my program and getting "???" in > Eclipse's console. =A0One of my friend suggested to check for dependent > jars while using Apache's DBCP. =A0But what I am bothered about is, if > dependent jars are not available, it should not give me correct values > for integer placeholders as well. =A0Any comments? I am using Eclipse v3.4 --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24