473,770 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UnsupportedEnco dingException with BIG-5 content type

When I make the following call with the mail has BIG-5 content type,

Part messagePart = message;
Object content = messagePart.get Content();

It throws the following exception

EXCEPTION THROWN JavaMailUtil.ge tMessage():Can' t get the message :
java.io.Unsuppo rtedEncodingExc eption: BIG-5
at sun.io.Converte rs.getConverter Class(Converter s.java:215)
at sun.io.Converte rs.newConverter (Converters.jav a:248)
at sun.io.ByteToCh arConverter.get Converter(ByteT oCharConverter. java:64)
at sun.nio.cs.Stre amDecoder$Conve rterSD.<init>(S treamDecoder.ja va:223)
at sun.nio.cs.Stre amDecoder$Conve rterSD.<init>(S treamDecoder.ja va:209)
at sun.nio.cs.Stre amDecoder.forIn putStreamReader (StreamDecoder. java:76)
at java.io.InputSt reamReader.<ini t>(InputStreamR eader.java:83)
at com.sun.mail.ha ndlers.text_pla in.getContent(t ext_plain.java: 65)
at javax.activatio n.DataSourceDat aContentHandler .getContent(Dat aHandler.java:7 55)
at javax.activatio n.DataHandler.g etContent(DataH andler.java:511 )
at javax.mail.inte rnet.MimeMessag e.getContent(Mi meMessage.java: 1259)

If I change the content type to Big5, it will be okay? There are many
big 5 mail uses

Content-Type: text/html;
charset="BIG-5"

Why JavaMail will throws exception? Would anybody please tell me the
work around? Thanks!
Jul 17 '05 #1
0 1861

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10797
by: jova | last post by:
Does anyone know of a good site where I can learn of this?
6
2567
by: micmic.chion | last post by:
I am using Windows 2003 Server English Version. I wanna store the big-5 data so I install the sql server 2000 as if i install it in the Windows 2000 with Server Collation of the Chinese_Taiwan_Stroke_CL_AS. However, the data are stored into the database server in unicode instead of big-5 in that of windows 2000 OS. I would like to ask how i can set so that the Sql Server 2000 can store the big-5 data
8
27464
by: Perception | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
7
1762
by: Tina | last post by:
I have an asp project that has 144 aspx/ascx pages, most with large code-behind files. Recently my dev box has been straining and taking long times to reneder the pages in the dev environment. After addding another Crystal report, vs.net will no longer build the project - it just goes away - no message no nothing. My other dev box will build it but won't run it in debug. I ran a vs.net repair but it still does the same thing. vs.net...
2
6551
by: bhatia | last post by:
Hello all, If I have a C-like data structure such that struct Data { int a; //16-bit value char; //3 ASCII characters int b; //32-bit value int c; //24-bit value }
17
1665
by: cass27 | last post by:
I am just doing a course on Javascript and have begun to try out different ideas. The effect I wanted was fro the user to click on a graphic. Aprompt box would apprear asking their name and that imfo would be transferred to the top of that page. However the users name will only appear on a seperate page. The code i am using (in brief) is as follows: function getname() {
3
2398
by: Tony Lance | last post by:
Big Bertha Thing spider Cosmic Ray Series Possible Real World System Constructs http://web.onetel.com/~tonylance/spider.html Access page JPG 11K Image Astrophysics net ring Access site Newsgroup Reviews including uk.rec.cycling Drawing of a clockwork spider wheel and hairpin.
0
1518
by: Tony Lance | last post by:
Big Bertha Thing progress Cosmic Ray Series Possible Real World System Constructs http://web.onetel.com/~tonylance/progress.html Access page to 6K Web page Astrophysics net ring access site Newsgroup Reviews including uk.transport The Progress of Discontent
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.
18
7814
dmjpro
by: dmjpro | last post by:
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...
0
9595
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
9432
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
10232
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
10059
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
8891
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
7420
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
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.