Hi All
I am facing an issue with my Emailagent java program. Currently the program it supports for UTF-8.it is not suppoting to utf-7. Incase any email comes with utf7 format it is getting failed and it is thrown an exception.
I have tried many possibilities by adding Jcharset.jar and jutf-7 jar to the package, but nothing worked well..
below are the exception detail:
java.io.UnsupportedEncodingException: utf-7
at sun.nio.cs.StreamDecoder.forInputStreamReader(Stre amDecoder.java:52)
at java.io.InputStreamReader.<init>(InputStreamReader .java:83)
at com.sun.mail.handlers.text_plain.getContent(text_p lain.java:107)
at javax.activation.DataSourceDataContentHandler.getC ontent(DataHandler.java:775)
at javax.activation.DataHandler.getContent(DataHandle r.java:522)
at javax.mail.internet.MimeMessage.getContent(MimeMes sage.java:1453)
at com.sforce.mail.ParsedMessage$EmailBody.<init>(Par sedMessage.java:549)
at com.sforce.mail.ParsedMessage$EmailBody.<init>(Par sedMessage.java:514)
at com.sforce.mail.ParsedMessage.<init>(ParsedMessage .java:210)
at com.sforce.mail.GenericClient.handleMessage(Generi cClient.java:693)
at com.sforce.mail.GenericClient.receive(GenericClien t.java:512)
at com.sforce.mail.EmailService$EmailWorker.run(Email Service.java:221)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Please any one help me how to resolve this issue..
Thanks & Regards,
Hari