Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Oracle NLS support thru JDBC

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to know something about Oracle National Language Support.
Does this mean that for this code snippet,
-----------------------------------
Float f = new Float("123.23");
preparedStatement.setFloat(1,f);
-----------------------------------
wont work on Oracle Server In France,
And it would require,
-----------------------------------
float f = Float.parseFloat("123.34");
Locale l = Locale.FRENCH;
DecimalFormat f1 = (DecimalFormat)NumberFormat.getInstance(l);
String s = f1.format(f).toString();
preparedStatement.setString(1,s);
-----------------------------------
I am really clueless about this whole thing....
Gimmie some directions as to where should i look.
Thanks,
Chinmay
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!