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

Similar Messages

  • 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

  • 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

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

  • Can a Resource file (.fr) be of type "Unicode text document"?

    Dear All,
    I'm doing string localization in my plugin programs. I created a resource file (MyPlugIn2_arAE.fr) for defining arabic strings. When I saved this file, I selected the type as "Unicode Text Document". Becuase only if it is a Unicode Text Document my arabic strings are preoperly saved. If I selected the type as "Text document" and save the file, all my arabic strings became "????????" like that. Now the problem is, it's giving a compilation error. (This is because the resource file MyPlugIn2_arAE.fr is saved as "Unicode Text Document").
    Error looking for resource specification. Need 'resource' or 'type'.
    odfrc - Execution terminated! 
    How do I resolve this problem?
    Thanks.

    Hi,
    I tried compiling with CS3 SDK, it gave an error and some warnings. I copied the output below. But with CS4 SDK, it compiles fine. How do I resolve this?
    1>Compiling...
    1>VCPlugInHeaders.cpp
    1>c:\sdk\adobeindesign\cs3\source\public\includes\UnicodeSavvyString.h(261) : error C2220: warning treated as error - no 'object' file generated
    1>c:\sdk\adobeindesign\cs3\source\public\includes\UnicodeSavvyString.h(261) : warning C4267: 'argument' : conversion from 'size_t' to 'int32', possible loss of data
    1>c:\sdk\adobeindesign\cs3\source\public\includes\UnicodeSavvyString.h(268) : warning C4267: '=' : conversion from 'size_t' to 'int32', possible loss of data
    1>c:\sdk\adobeindesign\cs3\source\public\includes\UnicodeSavvyString.h(281) : warning C4267: 'argument' : conversion from 'size_t' to 'int32', possible loss of data
    1>c:\sdk\adobeindesign\cs3\source\public\includes\WideString.h(348) : warning C4267: 'argument' : conversion from 'size_t' to 'int32', possible loss of data
    1>c:\sdk\adobeindesign\cs3\source\public\includes\WideString.h(366) : warning C4267: 'return' : conversion from 'size_t' to 'int32', possible loss of data
    1>c:\sdk\adobeindesign\cs3\source\public\includes\WideString.h(536) : warning C4267: 'initializing' : conversion from 'size_t' to 'const int32', possible loss of data
    1> c:\sdk\adobeindesign\cs3\source\public\includes\WideString.h(477) : see reference to function template instantiation 'int32 Strip_If<std::binder1st<_Fn2>>(WideString &,T)' being compiled
    1> with
    1> [
    1> _Fn2=std::equal_to<WideString::value_type>,
    1> T=std::binder1st<std::equal_to<WideString::value_type>>
    1> ]
    1>c:\sdk\adobeindesign\cs3\source\public\includes\WideString.h(554) : warning C4267: 'return' : conversion from 'size_t' to 'int32', possible loss of data
    1>Build log was saved at "file://c:\MyProjects\MyPlugIn2\objR\MyPlugIn2\BuildLog.htm"
    1>MyPlugIn2 - 1 error(s), 7 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

  • Please help explain the error "Can't make «script» into type Unicode text"

    i am writing an applescript for my eyetv installation that handles recorded shows. i have posted in their forums, without reply, so thought maybe i could get some understanding of the technicalities of the fault to try to fix myself!!
    i have a sub-routine:
    to deleteeyetvrecording(theRecordingID)
    set theScriptLibrary to load script file "Macintosh HD:Library:Scripts:ScriptLibraryv1.scpt"
    tell application "EyeTV"
    theScriptLibrary's log_event("RecordingDone", "Deleting EyeTV recording: " & (get title of theRecordingID), 2)
    try
    delete theRecordingID
    on error theErrorMessage number theErrorNumber from theErrorObject
    theScriptLibrary's log_event("RecordingDone", "deleteeyetvrecording: " & theErrorNumber & ": " & theErrorMessage & ". Object: " & theErrorObject, 2)
    end try
    end tell
    end deleteeyetvrecording
    even though the line above the error works fine and retrieves the Title property of the eyetv recording, the delete command on the next line outputs to the log file:
    Sunday, October 26, 2008 09:50:51 [ 1 ] Error deleting file (4/4): -1700: Can’t make «script» into type Unicode text.
    what does this error mean? what syntax changes are needed?
    note this sub-routine worked in v1 of my script - i only copy and pasted it to the v2 script! go figure!
    regards
    jingo_man

    Hello
    Without knowing what theRecordingID is, how deleteeyetvrecording() is called and what the actual code of log_event() is, I can only guess.
    The said error log is most likely not written by the code in the try block you provided, which should throw error by itself when theErrorObject cannot be coerced to string. I'd guess you have an enclosing try block where you call deleteeyetvrecording() and the said error log comes from there.
    As far as I can tell, you should not assume that you can always coerce theErroObject (that is obtained from 'from' parameter of 'on error' statement) to text.
    Too little information to go any further.
    H

  • Unicode text at my exchange account !

    hi..
    I have iphone4 and facing problem with some arabic text when receiving mails from some arab sites, the problem is while previewing messages it shows with no problem, but when trying to open & read it then everything become some unicode text !!
    you can see what I'm talking about on the following 2 pictures which shows the difference between previewing mails and opening it.
    Previewing:
    http://i172.photobucket.com/albums/w11/mindvision1/iphonemail/photo1.png
    Opening:
    http://i172.photobucket.com/albums/w11/mindvision1/iphonemail/photo2.png

    I did all that and nothing happened !
    Then perhaps there is something wrong with the settings on the Exchange server.
    Or if it is an Apple bug, then you can report it to them here:
    http://www.apple.com/feedback/iphone.html

  • Paste Special - unicode text equivalent

    When using Excel, I could copy tables from PDFs or Web Pages, then use "Paste Special" and "unicode text" to paste into a new document. By doing this, all data would go into appropriate columns. I can't figure out how to do this type of copy/pasting with Numbers.

    (1) You are in a Numbers dedicated forum so, Excel behavior doesn't matter here !
    (2) *_Help & Terms of Use_* which every one is supposed to read before asking here claims that we must search in existing threads if the question to ask was already answered before.
    Yours was answered several times.
    To be short : use my good old huge AppleScript
    set the clipboard to the clipboard as text
    Yvan KOENIG (VALLAURIS, France) jeudi 3 février 2011 22:38:47

Maybe you are looking for

  • Share libraries  among multiple users on the same Macbook.

    I want to share the IPhoto library between two users (A and B) of the same New Mac Book (Oct 08') that would be located in the Users/Shared folder. I tried to follow the steps described in article HT1198 of the Mac Support dated Oct. 8th, 08' (http:/

  • Why Can't I Add a New Page To My WP Site?

    I have a Wordpress site. I wanted to add a new page to it. However, when I try, I am able to type inside of the "Title" box & I am able to type inside of the "Post Excerpt (Meta Description)" box. However, I cannot type inside of the main body box wh

  • Upgrade from 3.0.0.00.20 to 3.1.2

    Hi, Could I please get clarification on my options to upgrade my current apex version 3.0.0.00.20 to 3.1.2. Can I just do a full download of 3.1.2 and run apexins.sql where it should pick up that it is not a new installation and upgrade? Thanks.

  • SP2010 - Documents migrated from different farm cause login prompts when opening..

    We have 3 SharePoint farms (Dev/Test/Prod) and we migrated Word documents between them a couple of different ways.. AvePoint's DocAve, copy from Explorer view of the two farms and Download/Upload. The documents were originally created on  the develop

  • Upgrading to 1.1.3

    i get an error message saying "you are not connected to the internet" try downloading when you are connected to the internet" Ok, so i rebooted, got online and sent a test email message successfully. Anyone else experience this and is there a workaro