Re: JDBC Latin1 problem - Mailing list pgsql-jdbc

From J. Michael Crawford
Subject Re: JDBC Latin1 problem
Date
Msg-id 6.1.1.1.2.20040804161557.0327cec0@pop.suscom-maine.net
Whole thread Raw
In response to Re: JDBC Latin1 problem  (smota <samuelmota@gmail.com>)
List pgsql-jdbc
<<How are you outputing this data?  Velocity, JSP and others "template
processors" allow you to specify the character set>>

   We're currently outputting the data from our own java application, which
will be turned into a servlet in a few weeks.  We skipped JSP and Velocity
because we had a very unique data schema with very unique needs (it would
have taken more time to do it the "easy" way in this case).  Thus, I'm not
sure I can find an environment variable.

   Thanks for the tip, though.

   BTW, all jibberish comes directly from the database, and displays as
such using System.out.println().

    - Mike


At 03:01 PM 8/4/2004, smota wrote:
 >How are you outputing this data?
 >
 >Velocity, JSP and others "template processors" allow you to specify
 >the character set, make sure it's set for a compatible one (usually
 >ISO-8859-1).
 >
 >You can set the LC_ALL environment variable to pt_BR.ISO8859-1 (of
 >course you can switch pt_BR for your locale code) and then start your
 >AS.
 >(for me this was the solution, setting all character set processing
 >options on Webwork and Velocity was not enough).
 >
 >Regards,
 >
 >Samuel
 >
 >---------------------------(end of broadcast)---------------------------
 >TIP 7: don't forget to increase your free space map settings


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Wrong column names in ResultSetMetaData
Next
From: Oliver Jowett
Date:
Subject: Re: [HACKERS] postgres and Jdbc 2.0