|
|
Choosing A Webhost: |
Re: How to insert Chinese (big5) through JDBC?: msg#00437db.postgresql.jdbc
On Wed, 30 Jul 2003, [big5] Eric Tan wrote: > Hi all, > I encounter problem when inserting Chinese. > These are my setting: > - postgresql 7.3 (database encoding: "SQL_ASCII") > - JDBC: pg73jdbc2.jar > - Tomcat 4.1.24 > - JSP/Servlet/Java Bean > insert into table1 values('¤@¤G¤T') // chinese cannot > display here... > Insert Chinese words are ok. But when I select the record, there were > wrong sth. like '? ?³æ ' > The sql statement is in big5 format because I write it in a log file. > I've tried using charset like this. Not knowing why. All fail... > jdbc:postgresql://202.71.201.252:5432/CA_care?charSet=ISO-8859-1 > jdbc:postgresql://202.71.201.252:5432/CA_care?charSet=SQL_ASCII > jdbc:postgresql://202.71.201.252:5432/CA_care?charSet=UTF-8 > jdbc:postgresql://202.71.201.252:5432/CA_care?charSet=Big5 > > Any idea. > Best Regards, > Eric Tan You cannot store Big5 data in a SQL_ASCII encoded database. Consider using UNICODE. Also the ?charset=xxx argument in the database URL is no longer valid in the Postgresql JDBC drivers starting with 7.3. Kris Jurka ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [HACKERS] Passing server_encoding to the client is not future-proof, Peter Eisentraut |
|---|---|
| Next by Date: | SetFetchSize and SetFetchDirection, Kim Ho |
| Previous by Thread: | How to insert Chinese (big5) through JDBC?, Eric Tan |
| Next by Thread: | Re: How to insert Chinese (big5) through JDBC?, Eric Tan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |