• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Oracle NLS support thru JDBC

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic