473,796 Members | 2,464 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 7817
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
12488
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
3140
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
5186
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
5223
by: BillJosephson | last post by:
Want to do OOP. Does c++ have all the abilities of java, or is it some subset? Thanks...
4
2621
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
4388
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
9680
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
9528
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10456
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
10230
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...
1
10174
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10012
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...
1
7548
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
5442
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.