Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

European characters

 
satish kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading from database that has european characters as part of city names. How do I make sure that rs.getString("DestinationCity") captures the city name with all the right characters? How can i check the ascii code or unicode value of each character?
 
satish kumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found out a way ... this works

String str = "K´┐ŻLN";

System.out.println(str.codePointAt(1));
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic