Double byte support of java mail

hi friends,
I am using javamail in my application. It works great !!!!
But if the mail has double byte characters then it is the problem . I get some vague characters.
How do i set the encoding /charset?
Please help
AK

watch on sun forum.

Similar Messages

  • What is double byte support for Materials?

    We recently upgraded to ECC5 Unicode form our earleir no unicode 46C.
    In this regard:
    How do we do a double byte language set up for Material master?
    What is meant by double byte support in the first place?
    Pl advise.
    - Ven

    If the system is Unicode no specific settings are necessary, you can enter the language code in the material text of any language and enter the text. If all people have the right fonts installed it will be displayed without problems.
    Markus

  • Double-byte support in Captive 5

    I am currently creating multiple choice exams in Captivate 5 (CP5) and here is my problem.  When I paste in the translated text (localized into Chinese-Simplified) from either MS-Word, Excel or Notepad into the question and answer fields in the CP5 Question slide, CP5 is substituting some of the Chinese characters with boxes.  I paste the same information into Notepad on my windows 7 PC and everything is OK.
    Does CP5 fully or partially support Double-Byte text?  If it does, what could I be doing wrong or missing in the way of a service pack or hotfix?  My Captivate version is - 5.0.1.624.
    Thanks for your help.  Dean

    Assuming you are using the same double byte character set as your db character set, then the answer is yes. Check out this table in the 9i Database Globalization Support Guide, for more info.
    http://technet.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96529/ch2.htm#103678
    Schema objects refer to table/index/view names etc.

  • Convert Asian characters to EBCDIC double byte

    How can I convert Asian characters like Chinise or Japanese into EBCDIC double byte array in Java. Do any code available to do this
    Thanks

    If I have a asian character in test (String) need to
    convert it to double byte EBCDIC array. Can you please
    let me know how to convert.That is somewhat like saying how do you convert it to ASCII, neither is possible.
    There are a number of character sets in the world that use the EBCDIC encoding for the lower bytes and support a multibyte format for another language.
    First you need to figure out what character set(s) you can use.
    Second you see if java supports an encoding for that.
    If it does then you use String.getBytes(String charsetName)
    If it doesn't you will have to make your own mapping function.

  • IMAP java mail -- Can't disable plain login

    Hi,
    I am trying to solve Authentication issue with IMAP and java mail1.4.1 connecting to Microsoft Exchange Server 2007 and couldn't disable AUTH: PLAIN.Also need to know how to enable NTLM.
    I set the property as follows with "xxxxxxxx...." shown below with right values:
    props.setProperty("mail.store.protocol","imaps");
    props.setProperty("mail.imap.auth.plain.disable","true"); -- "true" within quotes
    props.setProperty("mail.imap.host","xxxxxxxxxxx");
    props.setProperty("mail.imap.port","993");
    props.setProperty("mail.imap.user","xxxxxxx");
    props.setProperty("mail.imap.pwd","xxxxxx");
    props.setProperty("mail.imap.debug","true");
    props.setProperty("mail.imap.ssl.protocols","SSL");
    props.setProperty("mail.imap.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
    props.setProperty("mail.imap.socketFactory.fallback", "false");
    props.setProperty("mail.imap.socketFactory.port", "993");
    Still i couldn't get AUTH:PLAIN disabled and trying to get AUTH:NTLM enabled.
    DEBUG: setDebug: JavaMail version 1.4.1
    DEBUG: getProvider() returning javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    * OK Microsoft Exchange Server 2007 IMAP4 service ready
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    IMAP DEBUG: AUTH: PLAIN
    DEBUG: protocolConnect login, host=xxxxxxxxxxx, user=xxxxxxx, password=<non-null>
    A1 AUTHENTICATE PLAIN
    +
    NzM0NjE1NTk5NAA3MzQ2MTU1OTk0AE5ld3Bhc3N3MHJk
    A1 NO AUTHENTICATE failed.
    caught exception: javax.mail.AuthenticationFailedException: AUTHENTICATE failed.
    javax.mail.AuthenticationFailedException: AUTHENTICATE failed.
    at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:566)
    at javax.mail.Service.connect(Service.java:288)
    at javax.mail.Service.connect(Service.java:169)
    at edu.umich.mais.mail.testssl.main(testssl.java:59)
    Please help!!! thanks in advance.

    Hi,
    NTLM is not supported by Java Mail , i am wondering how my previous Java mail 1.3.3 program worked with other mail server (not microsoft exchange server) and produced the following result which seemed to use AUTH=NTLM:
    * OK IMAP4rev1 UMSG-WEB03.UMSG.xxxxx.umich.edu CTI2 interceptor 3.500016100 Service Ready
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 IDLE LOGIN-REFERRALS MAILBOX-REFERRALS NAMESPACE LITERAL+ UIDPLUS CHILDREN AUTH=NTLM
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    A1 LOGIN xxxxx xxxxxxx
    A1 OK LOGIN completed.
    A2 LIST "" INBOX
    * LIST (\Marked \HasNoChildren) "/" INBOX
    A2 OK LIST completed.
    DEBUG: connection available -- size: 1
    A3 EXAMINE INBOX
    The IMAP4 capability of exchange server 2007 supporting AUTH mechanisms are as follows --
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN IDLE NAMESPACE LITERAL+
    A0 OK CAPABILITY completed.
    IMAP DEBUG: AUTH: NTLM
    IMAP DEBUG: AUTH: GSSAPI
    IMAP DEBUG: AUTH: PLAIN
    If NTLM doesn't work with java mail , any other suggestions to make it work ??
    Thanks

  • Does Oracle XML Parser support double byte charset?

    Hi,
    Does Oracle XML Parser support double byte characters such as Korean or Chinese? If so, please tell me what version and how to construct xml/xsl files (...encoding="???")?
    Thanks for any help,
    Tuan

    Hi Raymond,
    Thank you for your help. It worked when I running in JDeveloper with your posted code. However, when I tried in my real application, it won't work.
    The problem is for localization purposes, my application using some texts display in browsers are saved in Unicode file. Later, application runs and depends on languages setting in browsers, with JavaServlet retrieves those texts and saves in formated xml StringBuffer. Then, using existed XSL Stylesheet file and OracleXMLParser to generate an output HTML.
    It has worked fine with English, France or others (single byte characters), but it can't
    for double bytes character such as Korean or Chinese. I also tried different charset in xml file.
    The following is one of returning errors:
    -- oracle.xml.parser.v2.XSLException: XSL-1004: Error while parsing input XML document (<Line 1, Column 552>: XML-0221: (Fatal Error) Invalid char in text.)
    I run this app in win2000/IIS with ServletExec3.0, JDK1.2.2 and OracleXMLParser v2.0.2.10
    Thank you for any helps,
    Tuan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Raymond Hayes Jr ([email protected]):
    Nothing fancy 'cause I'm half asleep but I used your xml/xsl and it seemed to work. No errors anyway. This is what I put together in JDeveloper 3.2
    package demo;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import oracle.xml.parser.v2.*;
    public class CuriosityKilledTheCat extends HttpServlet {
    * Initialize global variables
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    * Service the request
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    try
    XSLStylesheet xsl = new XSLStylesheet( new URL ("file:///c:\\temp\\input.xsl") , null );
    XSLProcessor xp = new XSLProcessor();
    XMLDocument xd = new XMLDocument ();
    XMLDocumentFragment xf = new XMLDocumentFragment();
    xf = xp.processXSL ( xsl , new URL ( "file:///c:\\temp\\input.xml") , null );
    System.out.println ( "here" );
    xd.appendChild( xf );
    xd.print ( response.getOutputStream() );
    catch ( Exception e )
    System.out.println ( e.getMessage() );
    * Get Servlet information
    * @return java.lang.String
    public String getServletInfo() {
    return "demo.CuriosityKilledTheCat Information";
    }<HR></BLOCKQUOTE>
    null

  • Implementation of double-byte character support in the Database

    Hi experts,
    There is an oracle 10.2.0.5 standard edition database running on windows platform. The application team needs to add a column of the datatype double byte (chinese characters) to an existing table. By doing so, will we have to change the character set of the database ? Would implementing this cause any impact on the database ?
    Is it possible to change the existing single byte column to the double byte column in a table?
    Edited by: srp on Dec 18, 2010 2:21 PM

    I think you should post your request to Globalization Support forum Globalization Support with following details:
    what is the APIs used to write data ?
    what are the APIs used to read data ?
    what is the client OS ?
    what is the value of NLS_LANG environment variable in client environment
    Note that command line SQL*Plus under Windows does not display Unicode data: try to use instead SQL Developer.
    Example:
    1. run in SQL*Plus:
    SQL> desc t;
    Name                                      Null?    Type
    X                                                  NUMBER(38)
    Y                                                  NVARCHAR2(10)
    SQL> insert into t values(1, unistr('\8349'));
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t;
             X Y
             1 ■
    SQL> select dump(y, 1016)  from t;
    DUMP(Y,1016)
    Typ=1 Len=2 CharacterSet=AL16UTF16: 83,49Run in SQL Developer:
    select * from t
    X                      Y         
    1                      草       

  • Java apps refuse to accept double byte characters

    Java apps refuse to accept double byte characters
    In my user account, all java apps now refuse to accept double-byte characters (Chinese, Japanese, etc). I have another clean account, and that one works fine.
    Things I tried doing:
    * repair permissions
    * search/delete .plist files with java as a part of the name
    * search/detete .plist file that has to do with TCIM, input method
    Nothing worked…
    MacBook Pro 15" early 2011, Lion 10.7.3.
    Can anyone help?

    Well, there is no guarantee that you can detect double-byte characters. However if you believe strongly that a file DOES contain double-byte characters, written in big-endian or little-endian format, then you can look at the first two bytes of the file:
    FFFE big-endian.
    FEFF little-endian.
    Code tip: Open the file as a FileInputStream, then wrap it in a PushbackInputStream. This allows you to read the first two bytes (so you can examine them), and push them back. If you find the expected encoding, then you can wrap the PushbackInputStream in an InputStreamReader, specifying the appropriate (big-endian or little-endian) decoding.
    Setup tip: I believe the decoding will only work if you have internationalization set up do this by copying i18n.jar from the lib directory (of the JRE) to the extension directory (of the JRE).

  • Jolt and wtc support double byte character??

    hi all,
    the wtc couldn't support double byte character while passing data from weblogic
    7 to tuxedo 8. so, can jolt do it?? say passing double type character.
    your quick response would be appreciable!
    sang

    try this ,Install acrobat4.0 or above and make sure you got acrobat distiller which will add a acrobat distiller printer in you windows. print report direct to that printer (don't change desformat) and you should got your PDF file with correct font setting.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by xie min ([email protected]):
    Hi :
    I am developing the simplified chinese application , when i generate the report in PDF format , i found all double byte character did not display correctly . i am using dev6i+patch5 , why ?
    it is a bug of form or not ???????
    HELP !!!<HR></BLOCKQUOTE>
    null

  • Support for Double Byte Chars in Table Names

    Can you please tell me if double byte characters are supported in table names? Thanks.

    Assuming you are using the same double byte character set as your db character set, then the answer is yes. Check out this table in the 9i Database Globalization Support Guide, for more info.
    http://technet.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96529/ch2.htm#103678
    Schema objects refer to table/index/view names etc.

  • Support for double-byte characters

    Does RH6 have support for double-byte characters for
    localization/translation to Asian languages? This feature was in
    X3, removed from X5, but did it make it into 6?
    Thanks,
    Mike

    Sorry but no.
    Here's a link to what did go into RH6.
    http://www.adobe.com/devnet/logged_in/mhu_rh_whatsnew.html

  • Safari 5.1.1 browser is not support double byte character website.

    In have installed 5.1.1 Safari, the double byte characters are not supporting in this browser. The same site(http://home.mcafee.com/Default.aspx/?culture=zh-cn) works fine in Firefox and IE8. The site also works fine in my friends system Safari 5.1.1. Do I need to install any plugin or change any settings?
    Note : I have installed Windows 7 Language packages.

    I had tried this but it's the same. I have attached a screenshot for your reference. This same page looks fine in other systems. The text is missing in the highlighted sections.

  • Report in PDF format can not support double byte character ?

    Hi :
    I am developing the simplified chinese application , when i generate the report in PDF format , i found all double byte character did not display correctly . i am using dev6i+patch5 , why ?
    it is a bug of form or not ???????
    HELP !!!

    try this ,Install acrobat4.0 or above and make sure you got acrobat distiller which will add a acrobat distiller printer in you windows. print report direct to that printer (don't change desformat) and you should got your PDF file with correct font setting.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by xie min ([email protected]):
    Hi :
    I am developing the simplified chinese application , when i generate the report in PDF format , i found all double byte character did not display correctly . i am using dev6i+patch5 , why ?
    it is a bug of form or not ???????
    HELP !!!<HR></BLOCKQUOTE>
    null

  • JavaMail support of non-ASCII and double-byte characters?

    currently doing a project involving foreign characters
    would be great to know if this was possible using java mail
    any insight?
    thanks in advance

    Yes, it is. (Not much of an "insight", was it?)

  • How to display double byte characters with system.out.print?

    Hi, I'm a newbie java programmer having trouble to utilize java locale with system io on dos console mode.
    Platform is winxp, jvm1.5,
    File structure is:
    C:\myProg <-root
    C:\myProg\test <-package
    C:\myProg\test\Run.java
    C:\myProg\test\MessageBundle.properties <- default properties
    C:\myProg\test\MessageBundle_zh_HK.properties <- localed properties (written in notepad and save as Unicode, window notepad contains BOM)
    inside MessageBundle.properties:
    test = Hello
    inside Message_zh_HK.properties:
    test = &#21890; //hello in big5 encoding
    run.java:
    package test;
    import java.util.*;
    public class Run{
      public static void main(String[] args){
        Locale locale = new Locale("zh","HK");
        ResourceBundle resource =
            ResourceBundle.getbundle("test.MessageBundle", locale);
        System.out.println(resource.getString("test"));
      }//main
    }//classwhen run this program, it'll kept diplay "hello" instead of the encoded character...
    then when i try run the native2ascii tool against MessageBundle_zh_HK.properties, it starts to display monster characters instead.
    Trying to figure out what I did wrong and how to display double byte characters on console.
    Thank you.
    p.s: while googling, some said dos can only can display ASCII. To demonstrate the dos console is capable of displaying double byte characters, i wrote another helloWorld in chinese using notepad with C# and compile using "csc hello.cs", sure enough, console.write in c# allowed me to display the character I was expecting. Since dos console can print double byte characters, I must be missing something important in this java program.

    after google a brunch, I learned that javac (hence java.exe) does not support BOM (byte order mark).
    I had to use a diff editor to save my text file as unicode without BOM in order for native2ascii to convert into a ascii file.
    Even the property file is in ascii format, I'm still having trouble to display those character in dos console. In fact, I just noticed I can use system.out.println to display double byte character if I embedded the character itself in java source file:
    public class Run {
         public static void main(String[] args) throws UnsupportedEncodingException{
              String msg = "&#20013;&#25991;";    //double byte character
                    try{
                    System.out.println(new String(msg.getBytes("UTF-8")) + " new string");  //this displays fine
                    catch(Exception e){}
                    Locale locale = new Locale("zh", "HK");
              ResourceBundle resource = ResourceBundle.getBundle("test.MessagesBundle", locale);
                    System.out.println(resource.getString("Hey"));      //this will display weird characterso it seems like to me that I must did something wrong in the process of creating properties file from unicode text file...

Maybe you are looking for