473,378 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

java.io.CharConversionException: java.io.UnsupportedEncodingException: hp-roman8

dmjpro
2,476 2GB
The total Exception is ......
JZ006: Caught IOException: java.io.IOException: JZ0I6: An error occured converting UNICODE to the charset used by the server. Error message: java.io.CharConversionException: java.io.UnsupportedEncodingException: hp-roman8
But now how should I handle this exception.
I am trying to do a Desktop Application ..Database Server has different Character Set .... and Client has an another one.
So how could I check that whether this Character Set is available in client Machine or not?

Please Help me.

Debasis Jana
Apr 1 '08 #1
18 7756
JosAH
11,448 Expert 8TB
The total Exception is ......
JZ006: Caught IOException: java.io.IOException: JZ0I6: An error occured converting UNICODE to the charset used by the server. Error message: java.io.CharConversionException: java.io.UnsupportedEncodingException: hp-roman8
But now how should I handle this exception.
I am trying to do a Desktop Application ..Database Server has different Character Set .... and Client has an another one.
So how could I check that whether this Character Set is available in client Machine or not?

Please Help me.

Debasis Jana
First you should always check if an en/decoding is supported; read the API
documentation for Charset.getAvailableCharsets()

kind regards,

Jos
Apr 1 '08 #2
dmjpro
2,476 2GB
First you should always check if an en/decoding is supported; read the API
documentation for Charset.getAvailableCharsets()

kind regards,

Jos

Thanks for Reply.
Now after checking that ..if that Character Set is not available then what shoud I be doing???
Please Help!

Debasis Jana.
Apr 1 '08 #3
JosAH
11,448 Expert 8TB
Thanks for Reply.
Now after checking that ..if that Character Set is not available then what shoud I be doing???
Please Help!

Debasis Jana.
Write your own or buy/download one; also see the CharsetProvider class.
You could've read the API documentation first though ...

kind regards,

Jos
Apr 1 '08 #4
dmjpro
2,476 2GB
Write your own or buy/download one; also see the CharsetProvider class.
You could've read the API documentation first though ...

kind regards,

Jos

One more thing I got a solution there ............. Sloution
CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Tru ncationConverter
I am using the http://www.docjar.com/jars/jconn2-2001-06-19.jar while I connecting to the database then.
And com.sybase.jdbc2.utils.TruncationConverter class is available in that jar.
So should I be setting this ....
CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Tru ncationConverter
???

Please Help.

Debasis Jana.
Apr 1 '08 #5
JosAH
11,448 Expert 8TB
One more thing I got a solution there ............. Sloution
CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Tru ncationConverter
I am using the http://www.docjar.com/jars/jconn2-2001-06-19.jar while I connecting to the database then.
And com.sybase.jdbc2.utils.TruncationConverter class is available in that jar.
So should I be setting this ....
CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.Tru ncationConverter
???

Please Help.

Debasis Jana.
According to that package name that functionality is available in the Sybase
database management system. Are you using that database?

kind regards,

Jos
Apr 1 '08 #6
dmjpro
2,476 2GB
According to that package name that functionality is available in the Sybase
database management system. Are you using that database?

kind regards,

Jos
Yeah I am using that database.
When I consulted with my Sir then he told me that hp-roman8 is not standard.
It is so ancient.
Now I think if i can set that property with that converter class then should I be able to solve that problem.
Now I am getting a connection object ... so from that object how could I set that property.

Please Help.

Debasis Jana.
Apr 1 '08 #7
JosAH
11,448 Expert 8TB
Yeah I am using that database.
When I consulted with my Sir then he told me that hp-roman8 is not standard.
It is so ancient.
Now I think if i can set that property with that converter class then should I be able to solve that problem.
Now I am getting a connection object ... so from that object how could I set that property.

Please Help.

Debasis Jana.
RTFM

kind regards,

Jos
Apr 1 '08 #8
dmjpro
2,476 2GB
RTFM

kind regards,

Jos
RTFM what is that??? :-)

Debasis Jana
Apr 1 '08 #9
r035198x
13,262 8TB
RTFM what is that??? :-)

Debasis Jana
Google is your friend
Apr 1 '08 #10
dmjpro
2,476 2GB
Google is your friend

I tried in Google.
But how could I get the ConnectionProperties from the Connection Object?
What I think guys ... If I do this then would it be working?

Expand|Select|Wrap|Line Numbers
  1. Properties con_props = new Properties();
  2. con_props.setProperty("username",value1);
  3. con_props.setProperty("password",value2);
  4. con_props.setProperty("CHARSET_CONVERTER_CLASS",value3);
  5. DriverManager.getConnection(url,con_props);
  6.  
Debasis Jana.
Apr 1 '08 #11
r035198x
13,262 8TB
I tried in Google.
But how could I get the ConnectionProperties from the Connection Object?

Debasis Jana.
Google for the letters that Jos posted above.
Apr 1 '08 #12
JosAH
11,448 Expert 8TB
I tried in Google.
But how could I get the ConnectionProperties from the Connection Object?
What I think guys ... If I do this then would it be working?

Expand|Select|Wrap|Line Numbers
  1. Properties con_props = new Properties();
  2. con_props.setProperty("username",value1);
  3. con_props.setProperty("password",value2);
  4. con_props.setProperty("CHARSET_CONVERTER_CLASS",value3);
  5. DriverManager.getConnection(url,con_props);
  6.  
Debasis Jana.
RTFM == Read The Fine Manual; please do so and stop guessing and stop
asking questions for which you could easily have found the solution in one of
those fine manuals.

kind regards,

Jos
Apr 1 '08 #13
dmjpro
2,476 2GB
Google for the letters that Jos posted above.
lolz ...
So I can't solve that problem ? :-(

Debasis Jana
Apr 1 '08 #14
JosAH
11,448 Expert 8TB
lolz ...
So I can't solve that problem ? :-(

Debasis Jana
Just for the record: I googled for 'rtfm' and this is the first link it came up with.

Please try to find solutions to your questions first using the easy way out.

kind regards,

Jos

ps. Did your option pane up 'come up' properly already? How's your Swing going?
Apr 1 '08 #15
dmjpro
2,476 2GB
Just for the record: I googled for 'rtfm' and this is the first link it came up with.

Please try to find solutions to your questions first using the easy way out.

kind regards,

Jos

ps. Did your option pane up 'come up' properly already? How's your Swing going?
No it's not coming.

Debasis Jana
Apr 1 '08 #16
JosAH
11,448 Expert 8TB
No it's not coming.

Debasis Jana
So what do you do about it? Simply leave it and go on to a next question?

kind regards,

Jos
Apr 1 '08 #17
dmjpro
2,476 2GB
Josh rigth now I discovered that.
The problem is not with that property....
Actually what happened when i tried to connect the database using NetBeans IDE 5.5 then same error reported by NetBeans?

Now Josh..is it the problem with that driver or error with that property?


Debasis Jana.
Apr 1 '08 #18
dmjpro
2,476 2GB
I managed to do that.
Actually some pressure was on my head.
That's y i started fake questioning .....
Just simply set the ....
Expand|Select|Wrap|Line Numbers
  1. conn_props.setProperty("CHARSET_CONVERTER_CLASS","com.sybase.jdbc2.utils.TruncationConverter");
  2.  
Debasis Jana
Apr 1 '08 #19

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Thomas Rokamp | last post by:
Hi! I'm testing a russian webpage with HttpUnit, but it seems, that it doesn't support the encoding (Win-1251). How can I add support for this in Java or HttpUnit? ...
0
by: Rami | last post by:
Hello all, Java has some printing problems with hp pcl5e and pcl6 drivers. I have one another printer that is defined just as "...PCL series", and this printer prints java output correctly. So, I...
1
by: SPG | last post by:
Hi, I have a servlet application that I am trying to write a very basic load tester for. There application has several servlets, but all rely on the same session being used (IE: For logged in...
0
by: Joie | last post by:
Hello, I have a general question, we are partnering with another company and they use HP-UX as the OS of choice. We rely heavily on Java and I was wondering if anyone has any experience with...
47
by: Theatre Mgmt | last post by:
Sun project seeks to solve Java memory, execution issues http://story.news.yahoo.com/news?tmpl=story&u=/infoworld/20050325/tc_infoworld/58059&e=1&ncid= San Francisco (InfoWorld) - Sun...
2
by: ramasubramanian.rahul | last post by:
hi i am trying to call some java APIs from c . i use the standatd JNI calls to load the JVM from a c program and call all java functions by using a pointer to the jvm which was returned by the JNI...
148
by: BillJosephson | last post by:
Want to do OOP. Does c++ have all the abilities of java, or is it some subset? Thanks...
4
by: praveen2gupta | last post by:
Hi I am getting java.io.UnsupportedEncodingException: koi8-u error by the server. i need your nelp to solve this error.
4
by: keveaton | last post by:
hi guys and girls, hope all is well. im not sure if this is the right place to post this, so apologies if so, here goes anyway. i have a customer who uses a java applet to view real time stock...
6
by: bw171 | last post by:
I got some java code below, and upon trying to compile it in my unix environment, i get the following error ()> javac Downloader.java Downloader.java:37: ';' expected private enum...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.