Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing 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