 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Markus Siebert Guest
|
Posted: Fri Jan 21, 2005 9:33 am Post subject: Problem with some chars |
|
|
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
|
Posted: Mon Jan 24, 2005 1:41 pm Post subject: Re: Problem with some chars |
|
|
How are you "displaying" the text? System.out, browser, etc..?
|
|
| Back to top |
|
 |
Markus Siebert Guest
|
Posted: Mon Jan 24, 2005 3:41 pm Post subject: Re: Problem with some chars |
|
|
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
|
Posted: Mon Jan 24, 2005 4:01 pm Post subject: Re: Problem with some chars |
|
|
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 |
|
 |
|
|
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
|
|