Displaying unicode text

I have to display unicode text present in Indian language on Jlabl or Jbutton. Thanks

Wrap your string into html format and try.
For i18n you can find more solutions from
http://forum.java.sun.com/forum.jspa?forumID=16

Similar Messages

  • Problem displaying Unicode text.

    Hi guys,
    I am new to I18N. i want to display some unicode text using java program. But i always get "???"..any idea??
    public class I18N {
    public static void main(String[] args) throws Exception {
    String street = "\u65E5\u672C\u8A9E";
    System.out.println(street);
    if i use unicode value equivalent to english chars, it works fine..i know there is some problem in loading the corresponding fonts..but not able to nail the problem.psl help..examples appreciated.

    For example if you have a MS-OS check this site
    http://www.hclrss.demon.co.uk/unicode/fonts.html
    or you could simple try every font you can find on your system.

  • EPM11.1.1.1 Data Prep Editor Can't Display non-Unicode text

    LANG=zh_CN.GBK
    ESSLANG=SimplifiedChinese_China.MS936@Binary
    I open data file, Chinese can not be displayed , but I can mannuly input Chinese.
    Display unicode text is OK, cannot load, so I change cube to unicode mode, Load data is OK. but DIM(informatica) cannot see the unicode application.

    Hi Bruce,
    for GeoRaster themes you can define a specific pyramid level to render, or you can leave the pyramid level null on the theme definition, and in this case MapViewer calculates the best level to render. The second option is recommended as it avoids loading unnecessary data given the current display parameters. If you are seeing your image get blocked, most likely at this zoom level and up you have reached the highest pyramid level of the GeoRaster. Even in MapBuilder if you keep zoom in, you get a blocked image after reaching the highest resolution level.
    Joao

  • Create HTML file that can display unicode (japanese) characters

    Hi,
    Product:           Java Web Application
    Operating system:     Windows NT/2000 server, Linux, FreeBSD
    Web Server:          IIS, Apache etc
    Application server:     Tomcat 3.2.4, JRun, WebLogic etc
    Database server:     MySQL 3.23.49, MS-SQL, Oracle etc
    Java Architecture:     JSP (presentation) + Java Bean (Business logic)
    Language:          English, Japanese, chinese, italian, arabic etc
    Through our java application we need to create HTML files that have to display unicode text. Our present works well with English and most of the european character set. But when we tried to create HTML files that will display unidoce text, say japanese, only ???? is getting displayed. Following is the code we have used. The out on the browser displays the japanese characters correctly. But the created file displays only ??? in place of japanese chars. Can anybody tell how can we do it?
    <%
    String s = request.getParameter( "txt1" );
    out.println("Orignial Text " + s);
    //for html output
    String f_str_content="";
    f_str_content = f_str_content +"<HTML><HEAD>";
    f_str_content = f_str_content +"<META content=\"text/html; charset=utf-8\" http-equiv=Content-Type></HEAD>";
    f_str_content = f_str_content +"<BODY> ";
    f_str_content = f_str_content +s;
    f_str_content = f_str_content +"</BODY></HTML>";
    f_str_content = new String(f_str_content.getBytes("8859_9"),"Shift_JIS");
    out.println("file = " + f_str_content);
              byte f_arr_c_buffer1[] = new byte[f_str_content.length()];
    f_str_content.getBytes(0,f_str_content.length(),f_arr_c_buffer1,0);
              f_arr_c_buffer1 = f_str_content.getBytes();
    FileOutputStream l_obj_fout; //file object
    //file object for html file
    File l_obj_f5 = new File("jap127.html");
    if(l_obj_f5.exists()) //for dir check
    l_obj_f5.delete();
    l_obj_f5.createNewFile();
    l_obj_fout = new FileOutputStream(l_obj_f5); //file output stream for writing
    for(int i = 0;i<f_arr_c_buffer1.length;i++ ) //for writing
    l_obj_fout.write(f_arr_c_buffer1);
    l_obj_fout.close();
    %>
    thanx.

    Try changing the charset attribute within the META tag from 'utf-8' to 'SHIFT_JIS' or 'utf-16'. One of those two ought to do the trick for you.
    Hope that helps,
    Martin Hughes

  • Problem causing (new line) in display of text in a report

    Environment: Oracle 11.2; application express 4.1
    I have a table with a unicode clob column into which I insert descriptive text. Within these text entries I have inserted CR/LF (\000D\000A). However when I display the text entries in a report, the text streams instead of appearing with separate lines.
    My report statement:
    select text_entry_dt, entry_authy_nm, entry_text
    from obj_text
    where obj_id = :P41_FIND_ID
      and text_type_cd = 'DES'Any suggestions for what to do to obtain line separation within the entry_text content?
    TIA,
    George

    George wrote:
    Environment: Oracle 11.2; application express 4.1
    I have a table with a unicode clob column into which I insert descriptive text. Within these text entries I have inserted CR/LF (\000D\000A). However when I display the text entries in a reportYou always need to distinguish between standard and interactive reports when you post a question...
    the text streams instead of appearing with separate lines.
    My report statement:
    select text_entry_dt, entry_authy_nm, entry_text
    from obj_text
    where obj_id = :P41_FIND_ID
    and text_type_cd = 'DES'Any suggestions for what to do to obtain line separation within the entry_text content?See:
    <li>{thread:id=2403846}
    <li>{thread:id=2330397}

  • Regarding displaying unicode

    Hello javaGurus!
    <Please Help me regarding displaying unicode>
    I am new to javaInternationalization,
    Till now i studies. Java Internationalization tutorial at http://java.sun.com/docs/books/tutorial/i18n/index.html and understand basic Structure.
    I have some problem displaying the unicode characters, such at, Arabic, and japneese.
    - How to display unicodes in applet?
    - How can we set the the Japneese, English, Arabic fonts in one application, which run on windows environment.
    - From where i can get the font s?
    Regards,
    waseem

    If you specify a String object with the unicode sequences (of the form "\u####\u####"), you can simply display it with the method setText(String) of the class javax.text.JTextComponent (or javax.JTextArea), for example. If you specify a String object with your own encoding in your source code, you can compile it with the command:
    javac -encoding <encodingName> fileName
    On Windows OS, the font ArialUnicodeMS will display almost all characters you are to show.
    You can find downloadable fonts in almost any search engine.
    - The following can be additional material for studying.
    http://java.sun.com/j2se/1.4/docs/guide/intl/fontprop.html
    http://developer.java.sun.com/developer/qow/archive/65/index.html

  • Displaying unicode or HTML escaped characters from HTTPService in Flex components.

    Here is a solution on the Flex Cookbook I developed for
    displaying data in Flex components when the data comes back from
    HTTPService as unicode of HTML escaped data:
    Displaying
    unicode or HTML escaped characters from HTTPService in Flex
    components.

    Hi again Greg,
    I have just been adapting your idea for encountering
    occasional escaped characters within a body of "normal" text, eg
    something like
    hell&ocirc; sun&scaron;ine
    Now, the handy String.fromCharCode(charCode) call works a
    dream if instead of the above I have
    hell&#244; sun&#353;ine
    Do you know if there is an equivalent call that takes the
    named entities rather than the numeric ones? Clearly I can just do
    some text substitution to get the mapping, but this means rather
    more by-hand work than I had hoped. However, this is definitely a
    step in a useful direction for me.
    Thanks,
    Richard
    PS hoping that the web page won't simply outguess me and
    replace all the above! Basically, the first line uses named
    entities and the second the equivalent numbers...

  • Problems displaying unicode encodeded characters in components

    I'm having problems getting Flash to display unicode that is
    imported from XML. In the example below the unicode characters in
    the name tag come through in Flash exactly as typed eg: \u00EA
    The xml file is written by PHP.
    <?xml version="1.0"?>
    <!-- Generated On: Sep-11-2007 12:24:19
    --><Colortool><Siding><item><type>c</type><id>11</id><name>Rev\u00EAtement
    Sp\u00E9cial</name>
    etc..
    However I've also tried re-saving the file manually in an
    editor encoded as UTF-8. Same result.
    Setting up a little test like:
    temp = "Rev\u00EAtement de premi\u00E8re qualit\u00E9";
    trace ("temp: " + temp);
    Traces: Revêtement de première qualité as
    expected.
    Any ideas why it works when the variable is set in Flash, but
    not when it's loaded from XML?
    Thanks,
    Anson

    By experimenting and some searching through the net I figured out that you need to set the right font. Kannada can be displayed using Tunga font on windows. But neither HTMLEditor nor TextArea has a setFont() method. Instead I tried with Text.
    text.setFont(Font.font("Tunga", 25.0));
    This worked partially. For example, if I try printing the character 'ಲಿ' its two component characters 'ಲ ಿ' are getting printed. They are not joining to form one single character 'ಲಿ'. Kannada like other Indic scripts is a complex layout script and I figured out from this post that complex layouts are not yet supported.
    Re: Urdu language support in Javafx UI Controls
    Unfortunately I cant use javafx for my purpose :-((

  • Crystal Reports 9 - Need to Display Spanish Text

    Post Author: Zando
    CA Forum: General
    I need to display Spanish text (...accented words, upside down
    question marks, tildes' over the 'N's, etc...) in Crystal reports 9.
    The text is coming from an Oracle database that has been updated to an
    8-bit character string to properly display the text in the database.
    But when the text appears in the Crystal report, none of the Spanish
    text characterists appear. It just comes out as plain text or displays
    a small box where a Spanish character should appear.
    How do I make the text appear 'Spanish', accents and all?
    I'm a Crystal novice, so please explain your solutions as non-technically as possible.
    Thanks!

    Post Author: Zando
    CA Forum: General
    Tom -Thanks for your response buddy!  Fortunately, after 2 days of Googling, I found the
    answer to my own question which I'll share here.
    Crystal Reports 9 (...and 10 and 11 as far as I know...) requires a
    downloadable patch that allows the report to display unicode characters in
    other languages.
    The paper explaining this problem can be found at:
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=B460E0FF9F8305201D62DC3CA247AB2D?cmd=displayKC&docType=kc&externalId=c2014141&sliceId=&dialogID=6000219&stateId=1%200%205998262
    The downloadable patch to fix this problem can be found at:
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http--supportbusinessobjectscom-communityCS-FilesandUpdatesNoNav-cr90mainwinenzipasp&sliceId=&dialogID=6060592&stateId=1%200%206058581
    This is the patch for correcting this problem for English unicode
    characters.  There are also patches available for French, German and
    Japanese unicode characters as well.
    I hope this helps anyone else who has run into the same problem.
    Zando

  • How to display korean text in file name

    Hi, I want to know how to make my system recognize and display Korean text in file names and such. My mp3 files are all a bunch of gibberish and they display that way in the itunes as well; the title, artist, and everything else.
    How can I fix this?

    Thanks. I tried that but the application wouldn't save any of the files for some reason.
    But it made me look for something else. In iTunes, I selected the song and right clicked, selected Convert ID3 Tags-->Reverse Unicode. Then it went to Chinese I think. I did the same thing again and it finally went to Korean.

  • I cannot display unicode

    I am new to java programming and I have a sample program which display a unicode characrer as below
    class checkCharacterLiterals{
         public void main static(String[] arguments){
              String testString;
              testString="Madura Makalandana\u2122";
              System.out.println(testString);
    the \u2122 for displaying the TM character. But when the program runs, it display another unknown character. Please advice for me

    You can't display unicode in a console/terminal/dos window unless the console/terminal/dos window supports it. You are using System.out.println... if you want to see the text, create a JTextArea or something to append the text to.

  • Displaying unicode chars in title of jdialog

    hello, I am developing application that has several dialogs. For each of these dialogs, I would like to display unicode characters in the title. Can some one please help me out and direct me on what I should to do make this work? All other controls on these dialogs can display i18n text fine, except the dialogs' title and I just can't figure this out. Please help. Thanks in advance.
    Max

    The latest J2RE 1.4.2_03 can display Unicode characters that are not necessarily supported by your host's ANSI character set. Set the font of the frame appropriately, and give it a try with a newer VM.

  • UNICODE text

    Hi,
    Could anyone tell me how to bind UNICODE text and ANSI to SQL statement as parameters or result columns in Windows environment ? I mean to bind in the same statement one parameter as an UNICODE text and second one as an ANSI (multibyte) text.
    Thx

    Use the following code UTF and NLS
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <oci.h>
    static text username = (text ) "SCOTT";
    static text password = (text ) "TIGER";
    /* Define SQL statements to be used in program. */
    static text insert = (text ) "INSERT INTO nls_demo(myno, myname, mydesc)\
    VALUES (:myno, :myname, :mydesc)";
    static text maxemp = (text ) "SELECT NVL(MAX(myno), 0) FROM nls_demo";
    static text selemp = (text ) "SELECT myno, myname, mydesc FROM nls_demo";
    static OCIEnv *envhp;
    static OCIServer *srvhp;
    static OCIError *errhp;
    static OCISvcCtx *svchp;
    static OCIStmt stmthp0, stmthp1, stmthp2, stmthp3;
    static OCIDefine defnp0 = (OCIDefine ) 0;
    static OCIDefine defnp1 = (OCIDefine ) 0;
    static OCIDefine defnp2 = (OCIDefine ) 0;
    static OCIDefine defnp3 = (OCIDefine ) 0;
    static OCIDefine defnp4 = (OCIDefine ) 0;
    static OCIBind bnd1p = (OCIBind ) 0; /* the first bind handle */
    static OCIBind bnd2p = (OCIBind ) 0; /* the second bind handle */
    static OCIBind bnd3p = (OCIBind ) 0; /* the third bind handle */
    static sword status;
    #define MYBUFSIZE 4000
    #define MYLONGSIZE 4000
    static utext ubuf[MYBUFSIZE]; /* a buffer for unicode conversion */
    static char tbuf[MYBUFSIZE]; /* a buffer for text conversion */
    static void checkerr(OCIError *errhp, sword status);
    static void cleanup(void);
    /* Converting buffers from and to unicode */
    static size_t mytxt2uni();
    static size_t myuni2txt();
    /* ------- MAIN program ------- */
    int main(argc, argv)
    int argc;
    char *argv[];
    sword empno;
    text ename[40];
    sb4 enamelen = 40;
    utext mydesc[MYLONGSIZE];
    sb4 mydesclen = MYLONGSIZE;          
    sb2 ename_ind, mydesc_ind, empno_ind, ename_rlen, mydesc_rlen;
    utext *ename_u;
    size_t blen=0;
    int i;
    ub2 myucs2id = OCI_UCS2ID; /* Unicode character set ID */
    OCISession authp = (OCISession ) 0;
    /* Allocate space for the Unicode buffer */
    ename_u = (utext *) malloc((size_t) ((enamelen + 1) * sizeof(utext)));
    if (!ename_u)
    fprintf(stderr, "Cannot allocate memory\n");
    return 1;
    /* Set up the OCI environment */
    (void) OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0,
    (dvoid * (*)(dvoid *, size_t)) 0,
    (dvoid * (*)(dvoid *, dvoid *, size_t))0,
    (void (*)(dvoid *, dvoid *)) 0 );
    (void) OCIEnvInit( (OCIEnv **) &envhp, OCI_DEFAULT, (size_t) 0, (dvoid **) 0 );
    (void) OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &errhp, OCI_HTYPE_ERROR,
    (size_t) 0, (dvoid **) 0);
    /* server contexts */
    (void) OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &srvhp, OCI_HTYPE_SERVER,
    (size_t) 0, (dvoid **) 0);
    (void) OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &svchp, OCI_HTYPE_SVCCTX,
    (size_t) 0, (dvoid **) 0);
    (void) OCIServerAttach( srvhp, errhp, (text *)"", strlen(""), 0);
    /* set attribute server context in the service context */
    (void) OCIAttrSet( (dvoid *) svchp, OCI_HTYPE_SVCCTX, (dvoid *)srvhp, (ub4) 0,
    OCI_ATTR_SERVER, (OCIError *) errhp);
    (void) OCIHandleAlloc((dvoid *) envhp, (dvoid **)&authp, (ub4) OCI_HTYPE_SESSION,
              (size_t) 0, (dvoid **) 0);
    (void) OCIAttrSet((dvoid *) authp, (ub4) OCI_HTYPE_SESSION,
    (dvoid *) username, (ub4) strlen((char *)username),
    (ub4) OCI_ATTR_USERNAME, errhp);
    (void) OCIAttrSet((dvoid *) authp, (ub4) OCI_HTYPE_SESSION,
    (dvoid *) password, (ub4) strlen((char *)password),
    (ub4) OCI_ATTR_PASSWORD, errhp);
    checkerr(errhp, OCISessionBegin ( svchp, errhp, authp, OCI_CRED_RDBMS,
                   (ub4) OCI_DEFAULT));
    (void) OCIAttrSet((dvoid *) svchp, (ub4) OCI_HTYPE_SVCCTX,
    (dvoid *) authp, (ub4) 0,
    (ub4) OCI_ATTR_SESSION, errhp);
    checkerr(errhp, OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &stmthp0,
    OCI_HTYPE_STMT, (size_t) 0, (dvoid **) 0));
    checkerr(errhp, OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &stmthp1,
    OCI_HTYPE_STMT, (size_t) 0, (dvoid **) 0));
    checkerr(errhp, OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &stmthp2,
    OCI_HTYPE_STMT, (size_t) 0, (dvoid **) 0));
    checkerr(errhp, OCIHandleAlloc( (dvoid *) envhp, (dvoid **) &stmthp3,
    OCI_HTYPE_STMT, (size_t) 0, (dvoid **) 0));
    /* Retrieve the current maximum employee number */
    /* Prepare the statement */
    checkerr(errhp, OCIStmtPrepare(stmthp0, errhp, maxemp,
    strlen((const char *)maxemp),
    (ub4) OCI_NTV_SYNTAX, (ub4) OCI_DEFAULT));
    /* bind the input variable */
    checkerr(errhp, OCIDefineByPos(stmthp0, &defnp0, errhp, 1, (dvoid *) &empno,
    (sword) sizeof(sword), SQLT_INT, (dvoid *) 0, (ub2 *)0,
    (ub2 *)0, OCI_DEFAULT));
    /* execute and fetch */
    if (status = OCIStmtExecute(svchp, stmthp0, errhp, (ub4) 1, (ub4) 0,
    (CONST OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT))
    if (status == OCI_NO_DATA)
    empno = 10;
    else
    checkerr(errhp, status);
    cleanup();
    return OCI_ERROR;
    empno+=10;
    /* Insert new data */
    checkerr(errhp, OCIStmtPrepare(stmthp2, errhp, insert,
    strlen((const char*)insert),
    (ub4) OCI_NTV_SYNTAX, (ub4) OCI_DEFAULT));
    /* Bind the placeholders in the INSERT statement. */
    checkerr(errhp, OCIBindByName(stmthp2, &bnd1p, errhp,(text*)":MYNO", strlen(":MYNO"),
    (dvoid *) &empno,
    (sword) sizeof(empno), SQLT_INT, (dvoid *) &empno_ind,
    (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0,
    OCI_DEFAULT));
    strcpy((char*)ename, "Scott Tiger"); /* just a fixed name for the demo */
    /* Convert buffer to Unicode */
    mytxt2uni(envhp, ename_u, enamelen+1, ename, enamelen+1);
    /* --- Bind the input Unicode buffer for the NAME column --- */
    checkerr(errhp, OCIBindByName(stmthp2, &bnd2p, errhp,
    (text*)":MYNAME", strlen(":MYNAME"),
    (dvoid *) ename_u,
    (enamelen+1) * sizeof (utext), SQLT_STR, (dvoid *) 0,
    (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0,
    OCI_DEFAULT));
    /* Set the attribute for the buffer to be Unicode encoded */
    checkerr(errhp,
    OCIAttrSet(bnd2p, OCI_HTYPE_BIND, &myucs2id, 0, OCI_ATTR_CHARSET_ID, errhp));
    /* Set the culomn width on the server */
    checkerr(errhp,
    OCIAttrSet(bnd2p, OCI_HTYPE_BIND, &enamelen, 0, OCI_ATTR_MAXDATA_SIZE, errhp));
    /*--- Bind the long DESC column using Unicode buffer ---- */
    checkerr(errhp, OCIBindByName(stmthp2, &bnd3p, errhp,
    (text*)":MYDESC", strlen(":MYDESC"),
    (dvoid *) mydesc,
    MYLONGSIZE * sizeof(utext), SQLT_LNG, (dvoid *) 0,
    (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0,
    OCI_DEFAULT));
    checkerr(errhp,
    OCIAttrSet(bnd3p, OCI_HTYPE_BIND, &myucs2id, 0, OCI_ATTR_CHARSET_ID, errhp));
    checkerr(errhp,
    OCIAttrSet(bnd3p, OCI_HTYPE_BIND, &mydesclen, 0, OCI_ATTR_MAXDATA_SIZE, errhp));
    /* fill data into long column - for demo purpose some numbers */
    for (i=0; i < MYBUFSIZE-1; i++)
    tbuf[i] = (text)(i % 10 + (text)'0');
    tbuf[i] = (text)0;
    empno_ind = 0; /* Reset indicator */
    /* Convert long buffer to Unicode */
    blen = mytxt2uni(envhp, mydesc, MYLONGSIZE, tbuf, MYBUFSIZE);
    /* --- Finally execute and commit the statement ---- */
    checkerr(errhp, OCIStmtExecute(svchp, stmthp2, errhp, (ub4) 1, (ub4) 0,
    (CONST OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT));
    checkerr(errhp, OCITransCommit(svchp, errhp, 0));
    /* Selecting the data again */
    /* --- Prepare the select statement ------ */
    checkerr(errhp, OCIStmtPrepare(stmthp3, errhp,
    selemp, strlen((char *)selemp),
    (ub4) OCI_NTV_SYNTAX, (ub4) OCI_DEFAULT ));
    /* Define the output variable for the select-list. */
    checkerr(errhp, OCIDefineByPos(stmthp3, &defnp2, errhp, 1,
    (dvoid *) &empno, sizeof(empno), SQLT_INT,
         (dvoid *) 0, (ub2 *) 0, (ub2 *) 0, OCI_DEFAULT));
    checkerr(errhp, OCIDefineByPos(stmthp3, &defnp3, errhp, 2,
    (dvoid *) ename_u, (enamelen+1) * sizeof(utext), SQLT_STR,
         (dvoid *) &ename_ind, (ub2 *) &ename_rlen,
    (ub2 *) 0, OCI_DEFAULT));
    /* Set the output name buffer to be Unicode encoded */
    checkerr(errhp,
    OCIAttrSet(defnp3, OCI_HTYPE_DEFINE, &myucs2id, 0, OCI_ATTR_CHARSET_ID, errhp));
    checkerr(errhp, OCIDefineByPos(stmthp3, &defnp4, errhp, 3,
    (dvoid *) mydesc, MYLONGSIZE * sizeof(utext), SQLT_LNG,
         (dvoid *) &mydesc_ind, (ub2 *) &mydesc_rlen,
    (ub2 *) 0, OCI_DEFAULT));
    /* Set the output desc buffer to be Unicode encoded */
    checkerr(errhp,
    OCIAttrSet(defnp4, OCI_HTYPE_DEFINE, &myucs2id, 0, OCI_ATTR_CHARSET_ID, errhp));
    /* Execute the select command */
    checkerr(errhp, OCIStmtExecute(svchp, stmthp3, errhp, (ub4) 0, (ub4) 0,
    (CONST OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT));
    /* Fetch the data display status of indicator variables */
    do
    empno=0;
    status = OCIStmtFetch(stmthp3, errhp, 1, OCI_FETCH_NEXT, OCI_DEFAULT);
    if(status !=0 && status != 100)
    checkerr(errhp, status);
    if (status == OCI_SUCCESS)
    printf("Number %d selected with following status:\n", empno);
    printf(" indicator variables: MYNAME %5d, MYDESC %5d\n", ename_ind, mydesc_ind);
    printf(" length of data : MYNAME %5d, MYDESC %5d\n", ename_rlen, mydesc_rlen);
    } while (status==0);
    cleanup();
    /* Function checking for errors during an OCI call execution */
    void checkerr(errhp, status)
    OCIError *errhp;
    sword status;
    text errbuf[512];
    sb4 errcode = 0;
    switch (status)
    case OCI_SUCCESS:
    break;
    case OCI_SUCCESS_WITH_INFO:
    (void) printf("Error - OCI_SUCCESS_WITH_INFO\n");
    break;
    case OCI_NEED_DATA:
    (void) printf("Error - OCI_NEED_DATA\n");
    break;
    case OCI_NO_DATA:
    (void) printf("Error - OCI_NODATA\n");
    break;
    case OCI_ERROR:
    (void) OCIErrorGet((dvoid *)errhp, (ub4) 1, (text *) NULL, &errcode,
    errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
    (void) printf("Error - %.*s\n", 512, errbuf);
    break;
    case OCI_INVALID_HANDLE:
    (void) printf("Error - OCI_INVALID_HANDLE\n");
    break;
    case OCI_STILL_EXECUTING:
    (void) printf("Error - OCI_STILL_EXECUTE\n");
    break;
    case OCI_CONTINUE:
    (void) printf("Error - OCI_CONTINUE\n");
    break;
    default:
    break;
    * Exit program with an exit code.
    void cleanup()
    if (stmthp2)
    checkerr(errhp, OCIHandleFree((dvoid *) stmthp2, OCI_HTYPE_STMT));
    if (stmthp1)
    checkerr(errhp, OCIHandleFree((dvoid *) stmthp1, OCI_HTYPE_STMT));
    if (errhp)
    (void) OCIServerDetach( srvhp, errhp, OCI_DEFAULT );
    if (srvhp)
    checkerr(errhp, OCIHandleFree((dvoid *) srvhp, OCI_HTYPE_SERVER));
    if (svchp)
    (void) OCIHandleFree((dvoid *) svchp, OCI_HTYPE_SVCCTX);
    if (errhp)
    (void) OCIHandleFree((dvoid *) errhp, OCI_HTYPE_ERROR);
    return;
    /* Convert a buffer to unicode using OCICharSetToUnicode function */
    size_t mytxt2uni(dvoid envhp, utext dst, size_t dstlen,
    CONST text * src, size_t srclen)
    size_t cconv; /* Number of characters converted */
    sword ret;
    if ((ret=OCICharSetToUnicode(envhp, dst, dstlen, src, srclen, &cconv))
    != OCI_SUCCESS)
    fprintf(stderr,"\nError in mytxtuni (ret = %d)\n", ret);
    exit(1);
    return cconv;
    /* Convert a unicode buffer to text using OCIUnicodeToCharSet */
    size_t myuni2txt(dvoid envhp, text dst, size_t dstlen,
    CONST utext * src, size_t srclen)
    size_t bconv;
    sword ret;
    if ((ret=OCIUnicodeToCharSet(envhp, dst, dstlen, src, srclen, &bconv))
    != OCI_SUCCESS)
    fprintf(stderr, "\nError in myuni2txt (ret = %d)\n", ret);
    exit(1);
    /* Check for usage of replacement character during conversion */
    if (OCICharSetConversionIsReplacementUsed((dvoid*)envhp))
    fprintf(stderr, "\nWarning: Replacement character used during conversion!\n");
    return bconv;
    }

  • My iPhone 5 won't display smart text options.

    My iPhone 5 won't display smart text. It did when I initially downloaded the new OS, now those options don't appear at all. Did I click something to make them disappear?
    I went into Settings to see if there was a component of it within Messages. I don't see anything.
    Thoughts please.....
    Thanks much
    Ginger

    Awwww......that's it....the dash! I tapped it. Tried to drag it up/down and it didn't move. Now I swiped and it's back!
    So I need to remember to drag up/down and now swipe.....
    Thanks much!
    Ginger

  • Is there any possible to display the text in big font in screen painter

    HI all!
    i want to display the text in the large size in the text field in the screen painter in the odule pool programing.Is there any possible.What i have to do in the screen painter to display the text in the large size.Also is there any possible to put the color for the text.Give me reply

    HI
    CALL METHOD o_dyndoc_id->initialize_document
          EXPORTING
            background_color = cl_dd_area=>col_tree_level1.
        DATA : dl_text(255) TYPE c.  "Text
        CALL METHOD o_dyndoc_id->add_text
          EXPORTING
            text         = 'Flight Details'
            sap_style    = cl_dd_area=>heading
            sap_fontsize = cl_dd_area=>large
            sap_color    = cl_dd_area=>list_heading_int.
    * Display document
        CALL METHOD o_dyndoc_id->display_document
          EXPORTING
            reuse_control      = 'X'
            parent             = cont
          EXCEPTIONS
            html_display_error = 1.
        IF sy-subrc NE 0.
        ENDIF.
    by using these methods you can achieve i hope..
    have a good day.
    regards
    sarves

Maybe you are looking for