D11 Unicode Text Issues

There appear to be several text issues in D11 on Mac OSX
10.4.11 and 10.5.2.
First problem being that setting the style of text to bold or
italic doesn't show any change. This occurs in both Shockwave and
D11 projectors.
Second using Chines Unicode font Song the text in fields
sometimes disappears. Its still there since calculations based on
the content of those fields still works but no text is visible
onscreen.
This font also has the problem where the text will not change
to bold.
Anyone else seenig anything like this or have a solution?
Thanks
EDB

IF we are now limited to setting only font styles that are
specifically defined in the font we're in real trouble.
This is NOT the way it worked in all previous version of
Director that I've used (7, 8, 8.5 MX, MX 2004).
The project I'm converting to D11 deals with font styles as I
would expect in MX 2004 on the very same machine with the same
fonts that D11 refuses to make bold.
This is the Chinese font information from my Mac...
Song Regular, 18 pt.
PostScript name SIL-Song-Reg-Jian
Full name Song Regular
Family Song
Style Regular
Kind TrueType
Language Bulgarian, Chinese, Cornish, English, Indonesian,
Malay, Oromo, Russian, Somali, Swahili
Version 4.1d1e1
Location /Library/Fonts/Song.dfont
Unique name Song Regular; 4.1d1e1; Wed, Feb 19, 2003
Copyright © Copyright Shanghai Ikarus Ltd. 1993 1994
1995
Trademark Shanghai Ikarus Ltd./URW Software & Type GmbH
Enabled Yes
Duplicate Yes
Copy protected No
Embeddable Yes

Similar Messages

  • Unicode conversion Issue

    Hi,
    We are using excel macros to load vendors.
    VB script in excel will call extenral RFC in SAP to validate and load vendors. SAP being an Unicode system and excel a non unicode system, is giving us issues while loading foreign characters other than english.
    For example, if we populate name in excel as "тест для макса" and once SAP validates the data these characters on excel get converted to "?????".
    Does anyone had similar issue? If yes, how did you deal with it?

    Sounds like something might go wrong with your code pages/used encodings. I.e. if I understand you correct you start off with data in Excel, that you then validate and the data changes? So I'm assuming that you're doing more than just validating...
    Anyhow, I doubt that you can label Excel as a non-Unicode application. E.g. in Excel 2007 you can clearly see that it handles Unicode, when you select some text and then paste it into Excel. However, instead of choosing the paste button, choose Paste special and you will see the option Unicode text. Also, when saving a worksheet in format xslx you can clearly see that the XML files contained in the xlsx archive (you'll see what I mean if you open the xslx file with a tool that you'd normally use for ZIP files) are encoded in UTF-8.
    I've seen some really old comments saying that VBA cannot handle Unicode, but I'm pretty sure that's no longer true (and was only applicable for really old Office versions)...
    I'm wondering if the issue is that your RFC call uses the OS code page, whereas Excel actually does use some Unicode encoding. Unfortunately I couldn't find quickly anything useful (apart from a description in the Office help that explained how to pick the encoding for Word and that Word in general stores data in UTF-8). So I'd personally start with some basic steps:
    <ol>
    <li>Check if you're using the right RFC library (see OSS note [1005832|https://service.sap.com/sap/support/notes/1005832]</li>
    <li>Check if you're setting the code page before calling your RFC; if not consider/try setting it (see OSS note [991572|https://service.sap.com/sap/support/notes/991572])</li>
    <li>Debug coding, possibly activating full trace for RFC and check where results go wrong</li>
    </ol>
    Cheers, harald

  • SAVING FILES AS  UNICODE TEXT / XML / M3U / M3U8

    HI, unable to find a clear explaination for what saving a file as UNICODE TEXT / XML / M3U / M3U8  is all about .... I want to archive and EXPORT music from I tunes to a external memory or a flash drive when I use the EXPORT option from the PLAYLIST I created.  Now I have 4 formats to save with  UNICODE TEXT / XML / M3U / M3U8   I want too save all the info of that particular song stored with I tunes (gendre, EQ, BPM, notes)   the reason I'm using EXPORT is I want to remove the songs from my library after EXPORTING the song. Is there another way to TRANSFER music with all the saved info 

    I suggest you engade Wikipedia and Webopida, do some export experimentation and don't delete anything unless you have a few backups and sure of the results.
    http://www.webopedia.com/
    Most commonly used backup methods
    You might be exporting the playlist itself, the songs are not included.
    You can apply tags and groupings to the song files themselves that get transferred with the song file, to whereever it goes.
    You'l lhave to play around and learn yourself or read a online iTunes instruction manual.
    We are here to solve supoprt related issues, not engage in a huge educational endeavor.

  • Generate Unicode text file

    Hi All,
    I am trying to create a unicode text file using OPEN DATASET which is to be fed to MDM for further process. I tried using the follow statement but no use,
    OPEN DATASET p_afile FOR OUTPUT IN LEGACY TEXT MODE
    CODE PAGE '1100' IGNORING CONVERSION ERRORS.
    After generating a file I try to save it manually using excel and it gets converted without any issues. But the requirement is to generate a unicode txt file as like below in excel,
    Any leads?

    I even tried the usual way as below but not able to get the file,
    OPEN DATASET p_afile FOR APPENDING IN TEXT MODE
    ENCODING UTF-8.

  • How to write a unicode text in pdf file

    Dear Friends,
    I am a beginner in acrobat pdf plug-in development. I was trying to write a unicode text (Tamil text) into pdf file.
    Using same api I am able to write english text in time-roman, areal etc fonts. But I am not able to write tamil texts.
    The code is as below:
            memset(&pdeFontAttrs, 0, sizeof(pdeFontAttrs));
            pdeFontAttrs.name = ASAtomFromString("Latha");
            pdeFontAttrs.type = ASAtomFromString("TrueType");
            pdeFont    = PDEFontCreateFromSysFont(                                        \
                            PDFindSysFont(&pdeFontAttrs, sizeof(pdeFontAttrs), 0),    \
                            kPDEFontCreateEmbedded);
            pdeText = PDETextCreate();
            PDETextAdd(pdeText, kPDETextRun, 0, (ASUInt8 *)buffer, _tcslen(buffer),
                                    pdeFont, &gState, sizeof(gState), NULL, 0, &textMatrix, NULL);
            PDEContentAddElem(pdeContent, kPDEAfterLast, (PDEElement)pdeText);
            PDPageSetPDEContent(pdPage, gExtensionID);  
            PDPageReleasePDEContent (pdPage, gExtensionID);
    KIndly assume that PDEGraphicsState and PDETextMatrix are set properly set, I am not pasting entire code to avoid complexity.
    Thank you,
    Safiq

    Dear lrosenth,
    I went through some codes/suggestions in internet and I found that I need to have cmap file and cid font file for the respective font since pdf doesn't support unicode fonts directly.
    Can you help me to know where can I get cmap file and cid font file for tamil language font Latha(TrueType) microsoft font.
    Regards,
    Safiq

  • Unicode related issue in 4.6c to ECC 6.0 upgrade

    Hi
    I am doing upgrade from 4.6c to ECC 6.
    Here I am getting one unicode related issue.
    "The data object A948 does not have a component called ZZMATWA.".
    This type of issues , how can I resolve.
    I am very new to upgrade, Plese do help me.
    Regards
    Sandeep Reddy.

    Hi,
    Can you give the error what you are coming across.
    Regards,
    Suhas

  • Automatically copy only the unicode-Text from a Word-Document into FM8

    In my daily work I often have the problem to copy and paste text from a  Word-Document or other documents into my FrameMaker documents.
    The common way is to copy it in Word and "Special Paste" it in FrameMaker 8 as unicode. But this is not as confortable as to shortly hit Ctrl-v on the keyboard.
    I would like to have a new menuitem to special paste only the unicode text from the clipbopard. Is there a way to make such a makro and to put it in the menubar with a Key-Trigger?
    I read something like that in http://www.rzg.mpg.de/from_external/Frame6_Handbuch/Setting_up_FrameMaker.pdf (german), but I actually don't know what to chage for my case.

    Rather than create a new menu item (possible, I gather, but fiddly) I would recommendchanging the default “paste” behaviour.
    In the MAKER.INI file there is a line beginning
    ClipboardFormatsPriorities=
    Change this to put UNICODE TEXT as the first item.
    Ctrl-v will then paste Unicode text by default. You can still access the other options, should you need to, by using Paste Special.

  • 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.

  • BDC : Function Module to Upload Unicode text file

    Hi Friends,
               Can anyone tell me how to upload data to internal table by taking it from unicode text file ?
    at present i'm using FM - GUI_UPLOAD which do not support Unicode text file.
    Sonal

    Hi,
    U Have to use CodePage Parameter to upload the data.
    Check the Description
    Character Representation for Output
    Description
    Use parameter CODEPAGE to specify the desired source codepage. If this parameter is not set, the codepage of the SAP GUI is used as the source codepage.
    Value range
    4-digit number of the SAP codepage. The function module SCP_CODEPAGE_BY_EXTERNAL_NAME provides the SAP codepage number for an external character set name, for example, "iso-8859-1". The function module NLS_GET_FRONTEND_CP provides the respective non-Unicode frontend codepage for a language.
    The desired codepage can be determined interactively, if the parameter with_encoding of method file_open_dialog is set by cl_gui_frontend_services.
    If the specified codepage is not suited for the Byte Order Mark of the file, an exception is triggered.
    SPACE: Codepage of the frontend operating system
    Default
    SPACE

  • How to read UNICODE text file

    Dear Guru,
    Are there any function module that we can use to upload/read UNICODE text file?
    Please advice.
    Regards,
    Ari

    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                = filenam
        filetype                = 'ASC'
        has_field_separator     = 'X'
      TABLES
        data_tab                = in_rec
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        OTHERS                  = 17.

  • How to read and write Unicode text with MS Access?

    Hi all, I'm new to Java, so please forgive me if my question is too ... ^_^
    I'm writing a small program that read and write data with MS Access. However, when I insert Unicode text into the database, it has wrong encoding like this "h?y l? n?m".
    Please tell me how to fix this.
    Thanks in advance!

    The following forum thread might be enlightening:
    http://forum.java.sun.com/thread.jspa?threadID=573855&messageID=2870785
    I myself do not use MS Access, but a PreparedStatement is in general the best option.
    You can set parameters in the SQL which then get converted and even protected against SQL injection hacking.

  • IPA unicode text in flash through shared fonts

    hi
    Can any one tell how to access IPA unicode text from xml file
    I use shared object concept in flash cs3 but still i can
    acess text of "02A4" this hexadecimal values you can read view IPA
    text from
    http://www.phon.ucl.ac.uk/home/wells/ipa-unicode.htm
    site. I use Charis SIL font but in flash when text is static its
    work ok but when the text font is used from shared fonts not able
    to see text and still embeded fonts not work. Can any one have
    kowlege Plz help
    thanks
    vivek

    I've never found a way. Sorry. If you do I would love to find
    out about it. Now Salish that is some language!

  • 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

  • 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

  • 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;
    }

Maybe you are looking for

  • Displaying image from database in report

    I need to include a picture (company logo) in numerous reports. This logo will be stored in an MS SQL Image field in a table (this bit I have already sorted out). What I'm wondering is, what is the best way to retrieve this image from the database? D

  • Conky on i3: alignment problem

    Hi everyone, I googled this without success so I bother the forum users. I'm currently using the i3 window manager, the problem is: I can't find a way to position conky the way I want. The alignment option seems to be overridden by the wm, except if

  • Strange font substitution

    Hi there, I am using a MacBook Pro with OSX 10.5.2. It has suddenly started to have problems with the fonts in fontbook and also doing some very strange font substitutions. Instead of showing text normally it is replacing it with random characters. Y

  • BW Statistics 3.5

    Hi all,          RSA1 t-code top displaying Data warehouse workbench and System component version is SAP NetWeaver 2004s, but all objects developed in 3.5 data flow. My doubt now i going to install BI Statistics whether i have to install below IC als

  • Macbook Pro stalls on shutdown "Checking Policies"

    I am having issues shutting down my MacBook Pro. Most of the time when I shut it down, it successfully closes all applications, clears the desktop icons and in the bottom right corner is a small square window. The first thing it says is "logging out"