Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading Polish characters from database  RSS feed

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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!