Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > character encoding

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-08, 08:36
sushma007 sushma007 is offline
Registered User
 
Join Date: Aug 2007
Posts: 41
Thumbs down character encoding

Hi all,

I am trying to connect to mysql 5 through my java application using JDBC .

But unfortunately i am getting the following error

Quote:
java.sql.SQLException: Unknown initial character set index '192' received from server. Initial client character set can be forced via the 'characterEncoding' property.


PLease guide me on this.

Thanks ,
Sush
Reply With Quote
  #2 (permalink)  
Old 07-02-08, 08:49
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 5,444
may be best to ask this in the java forum rather than the MySQL forum. let us know if you want it transferring to there
__________________
Warning
May! contain traces of NUT. people with NUT allergies should not pay attention to any of the above
Reply With Quote
  #3 (permalink)  
Old 07-03-08, 03:53
sushma007 sushma007 is offline
Registered User
 
Join Date: Aug 2007
Posts: 41
Yes, i would like to transfer it to Java forums
Reply With Quote
  #4 (permalink)  
Old 07-03-08, 04:13
sushma007 sushma007 is offline
Registered User
 
Join Date: Aug 2007
Posts: 41
I got it : in connection URL we need to add characterEncodinh=UTF8
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

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