If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > Problems with German umlauts (ä ö ü ) and JDBC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-04, 04:41
ParBERTel ParBERTel is offline
Registered User
 
Join Date: Jun 2004
Posts: 9
Question Problems with German umlauts (ä ö ü ) and JDBC

Hi there,

I am using Pervasive.SQL 2000 Server SP 4 on W2K both on Server and Client.

Im trying to insert Java Strings into a table. The problem is, if the String contains a german umlaut just like 'ä' 'ö' 'ü' or 'ß' it appears in the DB only as '?'. Example: "hällo" -> "h?llo"

If I do that using the SQL Data Manager of the Control Center I don't have that problem. Even if I read the String via the Java application the umlauts appear as expected.

The JDBC url for the db connection is like:
jdbc:pervasive://dbhost:dbhostport/dbname"

Note that I can retrieve umlauts via JDBC if they were inserted via the SQL Data Manager. I tried some different codepages e.g. cp850 but it doesn't help

(jdbc:pervasive://dbhost:dbhostport/dbname;encoding=cp850)

In fact if I use cp850 it's not possible to retrieve umlauts via JDBC (but it works to retrieve umlauts in Strings that are stored in Btrieve files)

Who can help me ?

After all: what must I do to store Strings containing umlauts (with JDBC) ?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 06-16-04, 08:31
ParBERTel ParBERTel is offline
Registered User
 
Join Date: Jun 2004
Posts: 9
The answer was blowing in the wind

Hi found the solution today :-) There are 2 possibilities.

1. Use PreparedStatements
or
2. Use the JDBC drivers shipped with Pervasive.SQL V8 (they are backwar compatible,thus they work with Pervasive.SQL 2000 too)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On