Copy/Paste Bug (Chinese Characters Added)

Hi everyone,
I'm not sure what is going on but recently, when I copy/paste something on my MacBook Pro, running the latest Mavericks, it sometimes appends some weird Chinese characters at the end of it. It will only show up sometimes and only in certain programs (such as copying URLs).
This worries me very much for some obvious reasons. I don't have Chinese enabled, the characters are not always the same, and I have absolutely no idea why it is doing this.
Any suggestions? Is this some weird but known bug? Am I the victim of some sort of spyware? Any suggestions as to what I should use to try to track this down? A quick google search turned nothing up.
I would demonstrate the bug here but it isn't currently reproducing the problem. As I said earlier: It's rather intermittent.
Any help or suggestions would really help me out.
Thanks.

I doubt anyone can help without a screen shot of what you are seeing.  Come back when you have one.  In the meantime I would not worry, it is most likely some kind of encoding glitch.  You don't have to "enable" a language to have it displayed on your screen, OS X automatically does that.

Similar Messages

  • Captivate 5.5 pasted Traditional Chinese characters don't render correctly

    Hi,
    I've been trying to cut-and-paste Traditional Chinese characters from PowerPoint (where they render perfectly) into Captivate, but they only get rendered partially. Here is an example
    From PPT:
    After pasting into Captivate:
    What could be going on here? Obviously, the Win7 system can render the characters correctly, but why don't they all display in Captivate?
    Thanks for any assistance,
    Andy

    Yeah. I've done that so many times it boggles my mind. Thanks but no star for you on this one, sorry.

  • Copy/paste bug

    Hopefully this isn't a repeat (I've been trying to keep up with this group, but boy it's active!)
    There seems to be an issue with copy/paste (or perhaps my case is not supported). Try the following:
    1) run a report (I ran the datafiles listing)
    2) click on a cell
    3) hit CTRL-C
    4) go to a worksheet and hit CTRL-V
    I get a CR and some spaces instead of the cell contents.

    I tested this and can copy over text data fine but when I tried it with numbers, I get nothing. That was just from Reports. When I copied text and numbers from the results of a Worksheet into the Worksheet both worked fine. I will log a bug. Thanks for letting us know.
    -- Sharon
    p.s. I tried this with a variety of reports and even had trouble with cells containing text. Added all the details to the bug.

  • IOS 5 Copy/Paste Bug

    Since updating to IOS 5 (both on iPhone 4 and iPad 2), I can no longer copy content from some web pages. This almost always happens when displaying .htm pages. IOS will allow ou to select the content and will go through the motions of copying it, but when you go to paste the information anywhere none of the data copied is pasted.

    Somewhat similar issue with my ipad2 after upgrade to ios5.I cannot copy/paste the URL address in landscape position with home button on the right. If I rotate the ipad to portrait positions (either side) and landscape with home buttion on the left, it works fine. And when it is working, like I can copy, then after awhile the safari browser website will crashed. The keyboard will comes up and down, up and down..... the search engine will slide in and out, in and out........... the bookmark wll slide in and out.... and immpossible to control the page ..... it will not response when i tap on any part and just have to switch off to stop. Anybody knows what is happening? got a bug? Any fix? Please help...........

  • InDesign CS4 & IDML & Copy & Paste Bug

    Hello,<br /><br />i have build an InDesign CS 4 document with javascript; like this<br /><br />//HelloWorld.jsx<br />//Create a new document.<br />var myDocument = app.documents.add();<br />//Get a reference to the first page.<br />var myPage = myDocument.pages.item(0);<br />//Create a text frame.<br />var myHelloTextFrame = myPage.textFrames.add();<br />//Specify the size and shape of the text frame.<br />myHelloTextFrame.geometricBounds = ["6p0", "6p0", "18p0", "18p0"];<br />//Enter text in the text frame.<br />myHelloTextFrame.contents = "Hello World!";<br />var myStory = myHelloTextFrame.parentStory;<br />myStory.trackChanges=true;<br />myStory.insertLabel("innerText1","dbkey2211");<br /><br />var myInnerTextFrame = myPage.textFrames.add();<br />//Specify the size and shape of the text frame.<br />myInnerTextFrame.geometricBounds = ["6p0", "30p0", "18p0", "42p0"];<br />//Enter text in the text frame.<br />myInnerTextFrame.contents = "ziemlich sinnfreier Text";<br />var myInnerStory = myInnerTextFrame.parentStory;<br />myInnerStory.trackChanges=true;<br />myInnerStory.insertLabel("innerText2","dbkey3322");<br /><br />//Save the document (fill in a valid file path).<br />var myFile = new File("/c/HelloWorld.indd");<br />var result = "saved to:  " + myFile.fullName;<br />if(!myFile.parent.exists && !myFile.parent.create()) {<br />     result = "Not saved.  Unable to create the folder:  " + myFile.parent.fullName;<br />} else {<br />     myDocument = myDocument.save(myFile);<br />}<br />//Close the document.<br />myDocument.close();<br /><br />result;<br /><br />so i get the "HelloWorld.indd" file ... so far so good. Now i load this in InDesign and export it as IDML.<br /><br />I get for example this story<br /><br /><?xml version="1.0" encoding="UTF-8" standalone="yes"?><br /><idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0"><br />     <Story Self="ue0" AppliedTOCStyle="n" TrackChanges="true" StoryTitle="$ID/" AppliedNamedGrid="n"><br />          <Properties><br />               <Label><br />                    <KeyValuePair Key="innerText2" Value="dbkey3322"/><br />               </Label><br />          </Properties><br />          <StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><br />          <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><br />          <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><br />               <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><br />                    <Content>ziemlich sinnfreier Text</Content><br />               </CharacterStyleRange><br />          </ParagraphStyleRange><br />     </Story><br /></idPkg:Story><br /><br />so far so good ... now i package them with "package -c HelloWorld Hello.idml" and load this document in InDesign ...<br /><br />at following i do some copy & paste actions and export the result to IDML and get this story ...<br /><br /><?xml version="1.0" encoding="UTF-8" standalone="yes"?><br /><idPkg:Story xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" DOMVersion="6.0"><br />     <Story Self="u186" AppliedTOCStyle="n" TrackChanges="false" StoryTitle="$ID/" AppliedNamedGrid="n"><br />          <StoryPreference OpticalMarginAlignment="false" OpticalMarginSize="12" FrameType="TextFrameType" StoryOrientation="Horizontal" StoryDirection="LeftToRightDirection"/><br />          <InCopyExportOption IncludeGraphicProxies="true" IncludeAllResources="false"/><br />          <XMLElement Self="di3i8" MarkupTag="XMLTag/Root" XMLContent="u186"><br />               <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle"><br />                    <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"><br />                         <Content>ziemlich sinnfreier Text</Content><br />                    </CharacterStyleRange><br />               </ParagraphStyleRange><br />          </XMLElement><br />     </Story><br /></idPkg:Story><br /><br />what the hell ... and find 2 differences <br /><br /> TrackChanges="false" <--- in the original this was true<br /><br />and the label has lost.<br /><br /><Properties><br />    <Label><br />     <KeyValuePair Key="innerText2" Value="dbkey3322"/><br />    </Label><br /></Properties><br /><br />so i think InDesign CS 4 have a bug in the copy and paste facility; only the content will be copied but all additional infos are lo

    Hi Bjoern,
    I'm not sure that InDesign ever really copies a story, just the text in the story. Since the label and the track changes setting were associated with the story itself (and not with the text in the story), they didn't survive the transfer from one story to another.
    It may depend on how you copy/paste--I'd expect the above to be true if you copy/paste with the Type tool, but I'm not sure what happens if you copy/paste all of the text frames in a story using the Selection tool. It may be that the label is maintained in that case.
    Thanks,
    Ole

  • Copy/paste - bug/odd behavior

    I am getting an annoying behavior from the workshop IDE, when i do
    copy/paste.
    I often double-click a word and then press CTRL-C. I can do this as well
    in workshop. But the behavior is VERY odd, when I do it with normal
    working speed.
    Say for example this code:
    <code>
    Line 1: String str = null;
    Line 2: If ( str != null)
    Line 3: str = "workshop is odd";
    </code>
    If I do double click and then CTRL-C on "str" in Line 3. Then my cursor
    moves up to "str" in Line 1, and on the clipboard is the full Line 3.
    Except from the movement of the cursor, a copy of the whole line I would
    only expect from a triple-click and it should as a minimum mark the
    whole line.
    In this example it is not so bad, but if my line 3 was line 99, it gets
    very annoying.
    If I do it "slowly" it behaves correctly or as expected.
    Is this expected behavior of IDE?? - Because this it definitely not my
    expectation.

    I doubt anyone can help without a screen shot of what you are seeing.  Come back when you have one.  In the meantime I would not worry, it is most likely some kind of encoding glitch.  You don't have to "enable" a language to have it displayed on your screen, OS X automatically does that.

  • Copy/paste bug in RichEditableText.as

    Hi All,
    I found this bug when I accidentally copied an excel file and pasted it inside a TextInput control (I thought I had copied one of the cell in the spreadsheet).
    Flex throws the following:
    Error #1009: Cannot access a property or method of a null object reference.
    This error came from inside the handlePasteOperation() method inside the RichEditableText.as.
    Have any of you had this problem ? I cannot override the function because it is marked as private function. Any suggestions for workaround ?
    Thank you

    I get the same exact error when I paste anything, even if there is nothing in clipboard.
    I also found similar threads here:
    http://forums.adobe.com/message/2904634
    http://forums.adobe.com/message/2030606

  • Copy/Past Bug?

    Ever since CS3 I've found that when I copy something and subsequently paste the item, it pastes unselected. I have to undo the process and paste again for it to be selected. On rare occasions I even have to do this more than once before it pastes in a selected state. I'm disappointed to find this is still the case with CS4.
    Sean

    Not a bug as it does not happen here in CS 4 or CS 3 ti is some conflict with what you have
    installed perhaps a haxie or a plug in or a font or some other software.
    This only happens withe few users and so I suspect a plug in or font and possibly a haxie but they
    all have stated in that past they have no haxies then if that is true I suspect a commonly used plug in or font.
    What is your system and OS like I am on a Mac Pro running 10.5.7. have a coupe of plug ins loaded.

  • INSERTing chinese characters in SQL*plus

    Db version: 10gR2
    NLS_NCHAR_CHARACTERSET for my DB is AL16UTF16 by which i can store chinese characters. To INSERT using SQL*Plus, i tried to copy and paste some chinese characters from internet. When the characters get pasted, it becomes '?????' (question marks). What else do i have to set to store Chinese characters?
    SQL>  CREATE TABLE EMP2
      2   (EMPNO NUMBER,
      3   ENAME NVARCHAR2(500));
    Table created.
    SQL> Insert into emp2(empno,ename) values(889,UNISTR('????'));
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> SELECT * FROM EMP2;
         EMPNO ENAME
           889 ????

    Actually, it looks like Forums do something strange to URLs pasted into posts. Sorry!
    The thread URL is Re: store/retrieve data in lang other than eng when CHARACTERSET is not UTF8

  • Can't get Typekit to work with localhost (also, another weird issue with copy+paste)

    Hi!
    I've searched through the other posts already, and I *think* I've tried all the solutions, but I still can't get the typekit fonts on my machine.
    I'm trying to use the "orator-std" font.  In the "kit editor", in the "kit settings -> kit settings" tab I have for name "localhost" (w/o quotes) and for domains just "127.0.0.1" (w/o quotes).
    Then (AFTER saving the settings from that tab), I go back into edge animate, I start a new font by clicking that + sign next to "fonts", in the "library" tab.  I set the "font fallback list" to ' "orator-std",sans-serif ' (w/ quotes, w/o single quotes), and then go back to the open browser and go to the "embed code", copy both lines of javascript, go back to edge animate, and... nothing.  It won't let me change ANY text in this box anymore after the window loses focus.  I have to press "cancel" and try again.  So this time, I just type in the orator-std... blah blah, same as last time, but paste in the code successfully as it was already in the clipboard and I didn't need to make the window lose focus.  Okay, so I click "Add font", and apply the font to my text.  Nothing happens.
    Huh... well the "Font's from T" picture is showing up in the bottom right of my screen, so that's odd.  I go to preview in chrome, still ugly old sans-seriff there, also with the "Font's from T" logo in the bottom right.
    I figure "okay, probably just takes a second... or a minute... or w/e like the message said."  Well this was at least an hour ago, so something is still wrong.
    I would love to just delete the font and start from scratch... maybe something got screwed up along the way and it would fix things to just start from scratch.  Well... "sorry" says edge animate... can't let you delete that!  In the "libarary" tab, there's only one font visible, it says "orator-std,sans-serif" (w/o quotes).  If I right click it, the only option is "delete" and it's greyed out.
    I tried doing one with arial instead of sans-serif just now, still not working, but everything shows up in arial now instead of sans-serif... so that's something I guess.
    Apologies if this is just a simple problem that I'm just somehow not grasping.  Please accept this legitimate bug report as payment... the er copy paste bug, I mean...
    Thanks!
    Trevor

    Hi Trevor,
    I'm sorry you ran into trouble here. Typekit can be used locally. However there are some necessary steps that if left out, will cause the fonts not to render. In order to use Typekit locally, you've got to:
    1. Be running a local server when testing your site in the browser. You can tell if you're running a local server by the URL of the local site. If it starts with: file:// then you are just viewing the local file in a browser and not running it from a local server.
    If the local URL starts with: http:// then you're running a local server.
    2. The domain of your local server has to be part of the domain list in your Kit. So, if your local server uses: localhost, you'll need to add this to your Kit's domains.
    I hope this helps. If you have any further questions, feel free to reach out to us directly: [email protected]
    Cheers,
    Benjamin

  • Simplified Chinese characters in iGrid

    Hi,
    Does anyone know how to insert simplified Chinese characters in the headings of an iGrid applet.
    Thanks,
    Ahmed

    Thanks Sam,
    However the iGrid editor does not take in Chinese characters. When I pasted the Chinese characters in the headings fields of the layout pane of the iGrid editor they came out as little boxes. Even after saving the template and viewing it in IE they still came out as little boxes.
    I opened up the saved template's XML file in a unicode editor pasted the Chinese characters for the headers then changed the font from the default Dialog to SimSun. SimSun is not one of the fonts available in the dropdown list of fonts in the iGrid editor. I then saved the XML file and re-viewed in IE and the Chinese characters displayed properly.
    Regards,
    Ahmed

  • After Effects CS6 copy paste from other apps is broken

    Hi there,
    After Effects just recently stopped accepting copied text from Microsoft Word (and many other applications incl Photoshop).
    Although it does allow me to copy into the AE GUI search bars, but still not from there into my composition text.
    I have tried a system restore to before the problem developed, however it did not work. I also found this (http://shisko.blogspot.co.nz/2008/01/copy-paste-bug-in-after-effects-fix.html), but the patches are for XP and Vista.
    I'm on Windows 7, running AE version 11.0.0.378, let me know if you have a workaround! This is very frustrating!
    Cheers,
    Brad

    Begin by installing the most recent updates and restarting your computer.
    http://blogs.adobe.com/premierepro/2011/06/updates-for-adobe-premiere-pro-after-effects-an d-adobe-media-encoder-cs5-cs5-5.html

  • Chinese characters copying incorrectly when saving pdfs with Preview

    So this is a very strange problem. When I save a .pdf that I have annotated in Preview, it saves fine and everything continues to display correctly. However, if I then try to copy Chinese characters from the pdf, it pastes gibberish. F'rex:
    灿烂辉煌 becomes "3456"
    and
    遇到的问题 becomes " !"
    Does anyone know what is going on and how to deal with it?

    The strange part is that initially the Chinese characters copy fine. It's only after I save the .pdf that copying goes all wonky.
    I think there is a bug related to annotation.
    Is there any way to control what encoding Preview uses when saving?
    No. PDF is the worst possible format to use for any kind of editing.
    Have you tried Adobe Reader? Or Skim?
    http://skim-app.sourceforge.net/
    Preview is not always the best option.

  • Can't cut and paste chinese characters

    I've always been able to copy chinese characters from pdfs and other documents and paste them into word or powerpoint or wenlin etc.  Suddenly the characters do not copy and paste.  I get little boxes or other dingbats.  I tried changing the font etc. but nothing works.  Is this due to an update on the OS?  How do I solve it?
    Thanks
    Sharon

    Sharon Weizenbaum wrote:
    I've always been able to copy chinese characters from pdfs and other documents and paste them into word or powerpoint or wenlin etc.  Suddenly the characters do not copy and paste.  I get little boxes or other dingbats. 
    PDF format is very different from most other docs, in that you cannot rely on copy/paste for non-Latin scripts.  Try Adobe Reader instead of Preview (or Vice Versa) or try different pdfs.  Send me an example of one that does not work if you like (tom at bluesky dot org).
    What other format doc is not working for chinese copy/paste for you?

  • ODBC API SQLBindParameter Bug When Passing Chinese Characters?

    Hi Everyone,
    I am accessing Oracle 10g database (on Windows XP) from Windows XP machine.
    Table TEST_TABLE is defined as
    CREATE TABLE TEST_TABLE(NVARCHAR2(255))
    Using ODBC (code comes shortly) data are successfully inserted into table using SQLBindParameter to bind parameter values.
    The same data can be succesfully read from the table. But the query to retrieve only those rows containing chinese characters simply doesn't work.
    I am using SQLBindParameter to bind a parameter placeholder when executing SELECT * FROM TEST_TABLE WHERE C1=?. It simply doesn't find the rows if parameter value contains chinese characters, it only finds rows if parameter contains pure ASCII data.
    Am I missing something here? NVARCHAR2 data type should be able to always store unicode data. My database settings are:
    NLS_NCHAR_CHARACTERSET=AL16UTF16 and NLS_CHARACTERSET=WE8MSWIN1252
    Here is the code:
    #include "stdafx.h"
    #include <windows.h>
    #include <sql.h>
    #include <sqlext.h>
    #define SQLCheck(x)          if (SQL_SUCCESS != x) {\
                                                                SQLINTEGER native;\
                                                                SQLSMALLINT msgLength;\
                                                                SQLCHAR szState[SQL_MAX_MESSAGE_LENGTH],szErrorMessage[SQL_MAX_MESSAGE_LENGTH];\
                                                                ::SQLError(henvAllConnections,hdbc,hstmt,szState,&native,szErrorMessage,SQL_MAX_MESSAGE_LENGTH,&msgLength);\
                                                                printf("Error state=%s, native=%d, message = %s\n",szState,native,szErrorMessage);\
                                                                DebugBreak();\
    #define MAX_CONNECT_LEN 512
    int tmain(int argc, TCHAR* argv[])
         SQLRETURN nRetCode     ;     
         HENV henvAllConnections;
         HDBC hdbc(0);
         HSTMT hstmt(SQL_NULL_HSTMT);
         //TEST_TABLE is created using the following query CREATE TABLE TEST_TABLE(C1 NVARCHAR2(255))
         nRetCode = ::SQLAllocEnv(&henvAllConnections);
         SQLCheck(nRetCode)
         nRetCode = ::SQLAllocConnect(henvAllConnections, &hdbc);
         SQLCheck(nRetCode)
         HWND hWnd = ::GetDesktopWindow();
         TCHAR szConnectOutput[MAX_CONNECT_LEN];
         TCHAR *pszConnectInput = const_cast<LPTSTR>(_T("DSN=o10 american;UID=no;PWD=no#"));
         SWORD nResult;
         nRetCode = ::SQLDriverConnect(hdbc, hWnd, reinterpret_cast<SQLTCHAR *>(pszConnectInput),
              SQL_NTS, reinterpret_cast<SQLTCHAR *>(szConnectOutput), sizeof(szConnectOutput),
              &nResult, SQL_DRIVER_NOPROMPT);
         SQLCheck(nRetCode)
         nRetCode = ::SQLAllocStmt(hdbc, &hstmt);
         SQLCheck(nRetCode)
         TCHAR* szQuery = T("INSERT INTO TESTTABLE(C1) VALUES(?)");
         nRetCode = ::SQLPrepare(hstmt,reinterpret_cast<UCHAR*>(szQuery), SQL_NTS);     
         SQLCheck(nRetCode)
         SQLSMALLINT     DataType,DecimalDigits,Nullable;
         SQLUINTEGER     ParamSize;
         nRetCode = ::SQLDescribeParam(hstmt, 1, &DataType, &ParamSize,&DecimalDigits, &Nullable);
         SQLCheck(nRetCode)
         wchar_t chineseData[6];
         chineseData[0]=0x0023;chineseData[1]=0x0050;chineseData[2]=0x0043;chineseData[3]=0xBA85;chineseData[4]=0xc870;chineseData[5]=0x0000;
         wchar_t asciiData[] = L"test data";
         SQLLEN sqlnts = SQL_NTS;
         nRetCode = ::SQLBindParameter(hstmt, (UWORD)1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,ParamSize,DecimalDigits,chineseData,static_cast<SQLINTEGER>(wcslen(chineseData) * sizeof(wchar_t)),&sqlnts);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecute(hstmt);
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindParameter(hstmt, (UWORD)1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,ParamSize,DecimalDigits,asciiData,static_cast<SQLINTEGER>(wcslen(asciiData) * sizeof(wchar_t)),&sqlnts);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecute(hstmt);
         SQLCheck(nRetCode)
         nRetCode = SQLFreeStmt(hstmt,SQL_DROP);
         SQLCheck(nRetCode)
         TCHAR* pszSQL = _T("SELECT * FROM TEST_TABLE WHERE C1=?");
         int nMaxLength = 1024;
         SQLLEN lLength = SQL_NTS,dataLen;
         TCHAR lpszFieldName[256];
         SWORD nActualLen,nSQLType,nScale,nNullability;
         SQLULEN     nPrecision;
         SQLSMALLINT nResultCols;
         wchar_t pWData[1024];
         nRetCode = ::SQLAllocStmt(hdbc, &hstmt);
         SQLCheck(nRetCode)
         SQLLEN paramLength = static_cast<SQLINTEGER>(wcslen(chineseData) * sizeof(wchar_t));     
         nRetCode = ::SQLBindParameter(hstmt,1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,nMaxLength,0,chineseData,paramLength,&sqlnts);     
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQL), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = ::SQLNumResultCols(hstmt, &nResultCols);
         SQLCheck(nRetCode)
         nRetCode = ::SQLDescribeCol(hstmt, 1,     reinterpret_cast<SQLTCHAR *>(lpszFieldName), 255, &nActualLen,&nSQLType,&nPrecision,&nScale,&nNullability);          
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindCol(hstmt, 1,     SQL_C_WCHAR, pWData, (nPrecision+1) * sizeof(wchar_t),     &dataLen);
         SQLCheck(nRetCode)
         nRetCode = nRetCode = ::SQLFetch(hstmt);
         if (SQL_NO_DATA_FOUND == nRetCode)
              printf("No data found although data are in the table!\n");
         else
              printf("Found chinese data in the table!\n");
         //now try with another qay of SQLBindParameter, which uses length instead of SQL_NTS     
         nRetCode = ::SQLBindParameter(hstmt,1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,nMaxLength,0,chineseData,paramLength,&paramLength);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQL), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = nRetCode = ::SQLFetch(hstmt);
         if (SQL_NO_DATA_FOUND == nRetCode)
              printf("No chinese data found even using different way of SQLBindParameter, although chinese data are in the table!\n");
         else
              printf("Found chinese data in the table!\n");
         //now try with ascii data
         nRetCode = ::SQLBindParameter(hstmt,1,SQL_PARAM_INPUT,SQL_C_WCHAR,SQL_WVARCHAR,nMaxLength,0,asciiData,static_cast<SQLINTEGER>(wcslen(asciiData) * sizeof(wchar_t)),&sqlnts);
         SQLCheck(nRetCode)
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQL), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindCol(hstmt, 1,     SQL_C_WCHAR, pWData, (nPrecision+1) * sizeof(wchar_t),     &dataLen);
         SQLCheck(nRetCode)
         nRetCode = ::SQLFetch(hstmt);
         if (SQL_NO_DATA_FOUND == nRetCode)
              printf("also didn't found ascii data!\n");
         else
              printf("found ascii data!\n");
         nRetCode = ::SQLFreeStmt(hstmt,SQL_DROP);
         SQLCheck(nRetCode)
         nRetCode = SQLAllocStmt(hdbc,&hstmt);
         SQLCheck(nRetCode)
         //now read all values to prove data are really there
         TCHAR* pszSQLAllDaya = _T("SELECT * FROM TEST_TABLE");
         nRetCode = ::SQLExecDirect(hstmt, reinterpret_cast<SQLTCHAR *>(pszSQLAllDaya), SQL_NTS);
         SQLCheck(nRetCode)
         nRetCode = ::SQLBindCol(hstmt, 1,     SQL_C_WCHAR, pWData, (nPrecision+1) * sizeof(wchar_t),     &dataLen);
         SQLCheck(nRetCode)
         while (SQL_NO_DATA_FOUND != SQLFetch(hstmt))
              printf("data from table %S\n",pWData);
         nRetCode =      ::SQLFreeStmt(hstmt, SQL_DROP);
         SQLCheck(nRetCode)
    hstmt = SQL_NULL_HSTMT;
         ::SQLDisconnect(hdbc);
         ::SQLFreeConnect(hdbc);
         ::SQLFreeEnv(henvAllConnections);
         return 0;
    Regards,
    Darko

    Hi Darko,
    You are right, I think you have discovered a bug in the 10.1.0.2 ODBC driver. I believe this problem is described in Bug 3249731.
    The good news is that this is already fixed in the 10.1.0.3 ODBC driver. Do you have access to MetaLink? Goto patches and download "Patchset 3842783" which is the ORACLE ODBC INSTANT CLIENT DRIVER PATCH VERSION 10.1.0.3.0
    Good Luck
    Nat

Maybe you are looking for

  • Error Message When Trying to Update iTunes...

    Every time I click Help- Check for updates iTunes gives me a pop-up. This pop-up reads "The server for updates cannot be reached" and to "check my internet connection" or something to that effect. This just does not make sense, since I am able to do

  • Perl in java

    hi guys is there is other way to call perl program in java without using exec command best regards

  • When will Filter Category in contact and in BBM will be added in BB OS10?

    Hello BB team,  I really love the bb 10 device  and realy want to buy one to support my businnes , but one thing that hold me back is the lack of 2 feature that i usualy use in bb os7 and older. the first one is the ability to add category in my cont

  • Missing items on Bridge filter panel

    I just took 4 new raw photos and copied them to a folder on my computer. I opened up Bridge and navigated to that folder. I see the 4 image files but the "Filter" panel is missing almost all the items and looks like this: If I navigate to another fol

  • Succession Planning 3.0 - Perf and Potential icon mapping to custom scale

    Hi, We have our own scale ID for Performance and Potential. I had changed the scale ID in extrainfo.xml to our scale ID. Now, how do I map the icon to our scale value? Our scale has only 3 ratings, 1 being lowest and 3 being highest. Whereas, in Naki