Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.databases > #356

Re: Java Database connect

From "Sabine Dinis Blochberger" <sabine.dinis.blochberger@THRWHITE.remove-dii-this>
Subject Re: Java Database connect
Message-ID <-Oqdnehdo6po_rzUnZ2dnUVZ8tzinZ2d@novis.pt> (permalink)
Newsgroups comp.lang.java.databases
References <248e0824-2a28-44a6-bb47-5912813d5894@a3g2000prm.googlegroups.com>
Date 2011-04-27 15:23 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.databases
Yogi wrote:

> On Nov 17, 2:30 pm, Sabine Dinis Blochberger <no.s...@here.invalid>
> 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.  Was trying to do
> > > similar thing for a standalone server (not a web based).  I tried
> > > using DBCP but i am getting strange results.  In my string variables,
> > > i am getting "???" as output whereas for int variables i am getting
> > > correct values when i m trying to read from database.
> >
> > Make sure you use the correct encoding when connecting to the databse,
> > for example, UTF-8. Refer to the manual of the database and JDBC driver
> > for specifics.
> 
> Thanks Sabine for your reply.  I understand your point. But same DB
> and jdbc driver is working fine when i m hitting this db from web
> based application.  There I am getting correct values.  Anything
> 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 "???" in
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.

---
 * 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

Back to comp.lang.java.databases | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Java Database connection "Yogi" <yogi@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
  Re: Java Database connect "Sabine Dinis Blochberger" <sabine.dinis.blochberger@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
    Re: Java Database connect "Yogi" <yogi@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
      Re: Java Database connect "Sabine Dinis Blochberger" <sabine.dinis.blochberger@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
        Re: Java Database connect "Yogi" <yogi@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
          Re: Java Database connect "Sabine Dinis Blochberger" <sabine.dinis.blochberger@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000
            Re: Java Database connect "Yogi" <yogi@THRWHITE.remove-dii-this> - 2011-04-27 15:23 +0000

csiph-web