This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Polish characters from database

Rik Sweeney
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm attempting to read some Polish characters from my database, but somewhere along the line the encoding gets lost.
Once I've stored the information in a String I'm supposed to change the encoding using
byte b[] = text.getBytes("UTF-8");
this should give me the correctly encoded data but since I'm using SilverStream I need to use a setText(String) method to display the text. As soon as I do this by converting my byte array to a String I lose the encoding. Does anyone know what I can do to solve this?
Richard Sweeney
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!