wood burning stoves 2.0*
The moose likes JDBC and the fly likes Reg: Encoding the european character data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Reg: Encoding the european character data" Watch "Reg: Encoding the european character data" New topic
Author

Reg: Encoding the european character data

arup majumder
Greenhorn

Joined: Nov 28, 2011
Posts: 5
I am trying to make a java jdbc code to transfer tables from sql server to Netezza. But as sql server tables having European characters so I cannot load the tables. I tried with java -Dfile.encoding=ISO-8859-15 -jar program.jar . But it didn't work. Can any body help me in it.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

What is the character encoding used by your JDBC driver to read strings ? Have you tried setting the characterEncoding property ?

http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
arup majumder
Greenhorn

Joined: Nov 28, 2011
Posts: 5
Actually my sqlserver tables have Chinese and Japanese charracters. Because of which I am getting error. I am using sqljdbc4.jar and nzjdbc.jar as jdbc driver. Can you tell me how to set characterEncoding property. Or how to Encode Chinese characters.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Did you go through the link I provided in the previous post ? It contains a reference to a property that can be set on the driver. Properties are usually provided on the JDBC connection string
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reg: Encoding the european character data
 
Similar Threads
Bug in JDBC ? Simple Select statement not returning a resultSet
jdbc + swing
sql plug-in for eclipse
System exception on UserTransaction.commit() , followed by RollbackException
Crystal Reports with Eclipse