• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Get Greek Data From Oracle DB

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am trying to retrive data(GREEK LANGUAGE) from Oracle DB.
But character conversion happening, i mean its not displaying proper value. My pice of code here. i have done regional settings in Control Panel as Greek Language.


java.util.Locale.setDefault(new Locale("gr"));
Connection conn = null;
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn =DriverManager.getConnection ("jdbc racle:thin:@10.0.60.15:1521:FCCPP","userid","pwd");Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery("select * from greek_table where field_no=14");
if (rs.next())
System.out.println(" Address 1 "+ rs.getString((2)));
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}


Can you pls help to resolve this?. Its urgent. Thanks in Advance.

Regards,
Sankar. S
 
I was born with webbed fish toes. This tiny ad is my only friend:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic