|
|
Choosing A Webhost: |
Issue when updating or inserting non-ASCII characters to VARCHAR UNICODE co: msg#00206db.maxdb
Hello list, I am in the process of enabling a content management system of ours for international use. Its architecture is an SAPDB 7.4.3.27 database instance as the back end, and Resin 2.1.16 as the application server, using the SAPDB JDBC driver to communicate with the database. The database instance is set to _UNICODE=YES. The issue that I'm experiencing is that when inserting or updating a field using a PreparedStatement of Sun's JDK 1.4.2, odd character conversions occur if the target field is of type VARCHAR(100) UNICODE, but works better if the field is of type LONG UNICODE. A specific example for the ç (ç) character is: Let TBLLANGUAGENAME have two columns: ID UNIQUE INTEGER, LANGUAGENAME VARCHAR(100) UNICODE Using a prepared statement to execute "UPDATE TBLLANGUAGENAME SET LANGUAGENAME=? WHERE IID=?", where ID is an existing unique id, and LANGUAGENAME='Français', fails with the ç being translated to ç. However, the same statement using SQL Studio works, the ç gets into the LANGUAGENAME field. If instead the table is defined like this: Let TBLLANGUAGENAME have two columns: ID INTEGER, LANGUAGENAME LONG UNICODE, using the same prepared statement with same parameters as above works to an extent. Instead of updating a ç into the LONG field, Français gets translated to Français, which of course also works for html display purposes. What do I need to do to avoid getting non-ASCII character mistranslations in VARCHAR fields? Is it even possible, or (more likely), am I missing something fundamental? Thanks for your insight! /Johan Hellgren -- MaxDB Discussion Mailing List For list archives: http://lists.mysql.com/maxdb To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Some Question, liu xiaotao |
|---|---|
| Next by Date: | RE: Issue when updating or inserting non-ASCII characters to VARCHAR UNICODE column, Schroeder, Alexander |
| Previous by Thread: | Some Question, liu xiaotao |
| Next by Thread: | RE: Issue when updating or inserting non-ASCII characters to VARCHAR UNICODE column, Schroeder, Alexander |
| 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 |
Home
| advertise | OSDir is
an inevitable website.
|