且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-02-23 11:48:11


总异常是......
JZ006:Caught IOException:java.io.IOException:JZ0I6:将UNICODE转换为使用的字符集时发生错误服务器。错误消息:java.io.CharConversionException:java.io.UnsupportedEncodingException:hp-roman8

但是现在应该如何处理此异常。

我正在尝试做一个桌面应用程序..Database Server有不同的字符集....而客户端有另一个。

那我怎么能检查这个字符集是否在客户端机器上可用?


请帮帮我。


Debasis Jana
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



首先你应该总是检查是否支持en / decode;阅读API

文档 Charset.getAvailableCharsets()


亲切的问候,


Jos

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

kind regards,

Jos



首先,您应该始终检查是否支持en / decoding;阅读API

文档 Charset.getAvailableCharsets()


亲切的问候,


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

kind regards,

Jos



感谢回复。

现在检查完那个字符集后如果没有,那我该怎么办? ????

请帮助!


Debasis Jana。


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

Debasis Jana.



感谢回复。

现在检查了那个..如果字符集不可用那么我要做什么???

请帮助!


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

Debasis Jana.



自己写或购买/下载一个;另请参阅 CharsetProvider 课程。

您可以先阅读API文档但是......


亲切的问候,


Jos

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

kind regards,

Jos