473,785 Members | 2,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java.io.CharCon versionExceptio n: java.io.Unsuppo rtedEncodingExc eption: hp-roman8

dmjpro
2,476 Top Contributor
The total Exception is ......
JZ006: Caught IOException: java.io.IOExcep tion: JZ0I6: An error occured converting UNICODE to the charset used by the server. Error message: java.io.CharCon versionExceptio n: java.io.Unsuppo rtedEncodingExc eption: 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 7814
JosAH
11,448 Recognized Expert MVP
The total Exception is ......
JZ006: Caught IOException: java.io.IOExcep tion: JZ0I6: An error occured converting UNICODE to the charset used by the server. Error message: java.io.CharCon versionExceptio n: java.io.Unsuppo rtedEncodingExc eption: 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.getAvai lableCharsets()

kind regards,

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

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 Recognized Expert MVP
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 Top Contributor
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_CONVERT ER_CLASS=com.sy base.jdbc2.util s.TruncationCon verter
I am using the http://www.docjar.com/jars/jconn2-2001-06-19.jar while I connecting to the database then.
And com.sybase.jdbc 2.utils.Truncat ionConverter class is available in that jar.
So should I be setting this ....
CHARSET_CONVERT ER_CLASS=com.sy base.jdbc2.util s.TruncationCon verter
???

Please Help.

Debasis Jana.
Apr 1 '08 #5
JosAH
11,448 Recognized Expert MVP
One more thing I got a solution there ............. Sloution
CHARSET_CONVERT ER_CLASS=com.sy base.jdbc2.util s.TruncationCon verter
I am using the http://www.docjar.com/jars/jconn2-2001-06-19.jar while I connecting to the database then.
And com.sybase.jdbc 2.utils.Truncat ionConverter class is available in that jar.
So should I be setting this ....
CHARSET_CONVERT ER_CLASS=com.sy base.jdbc2.util s.TruncationCon verter
???

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 Top Contributor
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 Recognized Expert MVP
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 Top Contributor
RTFM

kind regards,

Jos
RTFM what is that??? :-)

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

Debasis Jana
Google is your friend
Apr 1 '08 #10

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

Similar topics

1
12481
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? java.io.UnsupportedEncodingException: WIN-1251 at sun.io.Converters.getConverterClass(Converters.java:114) at sun.io.Converters.newConverter(Converters.java:145) at
0
3139
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 tried to find only pcl drivers for hp 2200L and hp 2300L printers, but I could not. Do yo have any idea how to print from java to the printers with pcl5e drivers? Thanks,
1
8577
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 users etc). I am trying to write a little test app to test the workflow of the servlet application. The problem is I need to keep the same session alive and post via that session.
0
1453
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 Java on HP-UX. From what I have read, back in the 1.1 to 1.2 versions it was extremely slow. However, I do not see much negative coverage starting at the 1.3 release. am I missing something? thanks,
47
5184
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 Microsystems Laboratories (Sun Labs) is working on a research effort to address issues with the memory footprint, startup and execution times when running multiple Java applications concurrently. The Multi-Tasking Virtual Machine (MVM), developed as a...
2
2828
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 call the source code is given below and also the errors .. Plz help in resolving these. This is a code being (slightly modified ) which was downloaded from SUN website :
148
5216
by: BillJosephson | last post by:
Want to do OOP. Does c++ have all the abilities of java, or is it some subset? Thanks...
4
2620
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
2866
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 quotes from FInet. this is a company based in hong kong. he had this problem on his PC whereby it wouldnt display the applet, just a place holder (the java cup with the sun going round it). i tried everything i could think of, ended up rebuilding his...
6
4387
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 ReportFormat { ^ 1 error This is a portion of the code below
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9953
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8978
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3655
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.