AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with some chars

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Markus Siebert
Guest





PostPosted: Fri Jan 21, 2005 9:33 am    Post subject: Problem with some chars Reply with quote



Hi,
ive a problem with some chars.
Im using mySQL with phpmyadmin and everything seems to work fine! But
when i run my Java application i have the problem that all chars lik ä,
ö, ü, ß .... => are displayed like [] (squares) or obj....
What can i do.
At home my app runs without problems...
What can I do?
I apreciate any kind of help!
Back to top
willirl
Guest





PostPosted: Mon Jan 24, 2005 1:41 pm    Post subject: Re: Problem with some chars Reply with quote



How are you "displaying" the text? System.out, browser, etc..?

Back to top
Markus Siebert
Guest





PostPosted: Mon Jan 24, 2005 3:41 pm    Post subject: Re: Problem with some chars Reply with quote



willirl schrieb:
Quote:
How are you "displaying" the text? System.out, browser, etc..?

I create a DB object that returns resultsets with a method

getQuery(String sqlQuey).
Then ill print the results in textfields with
tf.setText(rs.getString("attrib1");

The values in my database are ok.

Back to top
Sergey Bezrukov
Guest





PostPosted: Mon Jan 24, 2005 4:01 pm    Post subject: Re: Problem with some chars Reply with quote

Hi !

Markus Siebert wrote:
Quote:
Hi,
ive a problem with some chars.
Im using mySQL with phpmyadmin and everything seems to work fine!

Did you read this doc ?
http://dev.mysql.com/doc/connector/j/en/cj-character-sets.html

I think the problem is character set mismatch between server and client.
Try to set "characterEncoding" connection property to the right value.
Hope this helps.

--
WBR,
Serge.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.