Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / January 2005

Tip: Looking for answers? Try searching our database.

Problem with some chars

Thread view: 
Markus Siebert - 21 Jan 2005 09:33 GMT
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!
willirl - 24 Jan 2005 13:41 GMT
How are you "displaying" the text?  System.out,  browser, etc..?
Markus Siebert - 24 Jan 2005 15:41 GMT
willirl schrieb:
> 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.
Sergey Bezrukov - 24 Jan 2005 16:01 GMT
Hi !

> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.