Data are not transfered as unicode through sockets

I have aplication with connection through sockets. I use PrintWriter and BufferedReader for writing and reading data, created lik this:
pw = new PrintWriter( skt.getOutputStream(), true );
br = new BufferedReader( new InputStreamReader( skt.getInputStream() ) );
When I send data I put this code for checking:
int tmpSize = str.length();
for( int i = 0; i < tmpSize; i++ )
     char chr = str.charAt( i );
     int tmpInt = (int)chr;
     System.out.print( tmpInt + " " );
System.out.println();
pw.println( str );
And when I receive data I put something similar with string read with
br.readLine().
For unicode characters the result is different ( I use ascii and russian characters ). At sending data, it is normal, and at receiving I get '?' instead of unicode characters, something like this
109 101 115 115 58 98 108 117 101 58 32 1092 1099
before sending data and this
109 101 115 115 58 98 108 117 101 58 32 63 63
after receiving.
Can somebody help me with this, or it is a bug?

Ok, I just solved it. I had to create reader and writer like this:
pw = new PrintWriter( new OutputStreamWriter( skt.getOutputStream(), "UTF-16" ) );
br = new BufferedReader( new InputStreamReader( skt.getInputStream(), "UTF-16" ) );
Seems that default encoding set was not unicode even if it is Writer and Reader!

Similar Messages

  • Data are not transfered to a table view using signal out

    Hi all,
    we have recently upgraded to SP16 and I'm now facing a problem on my model that worked fine when we were on SP15.
    I have a data service returning data to my model. The data are transfered to a signal out element and then displayed into a table view using a signal in element. Now the table view remains empty.
    I have checked that the dataservice returns data because if I directly connect my table view with the dataservice the data are displayed. But my requirement is to use signal in/out elements.
    This error was not appearing in SP15.
    Any ideas?
    Regards
    Panos

    After doing some tests I found out that if you have a model that has more than 2 signals in/out then the 3rd one will not work. This is definitely a bug.
    Hope that soon there will be a SP without any new bugs!

  • The outlook calendar data are not transfered to my Ipad mini when launch the synchronization via Itunes - the process seems to abort very quickly

    Configuration: IMAC - OS 10.7.5 - Outlook 14.0.0 - Itunes 11.0.2
    Thank you for help :-)

    Configuration: IMAC - OS 10.7.5 - Outlook 14.0.0 - Itunes 11.0.2
    Thank you for help :-)

  • When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.

    Problem:
    When I plug in my iPhone to sync, it starts but does not complete the process and several pieces of data are not being transferred to my iPhone from my MacBook Air.
    Any help that you can provide in helping my iPhone accurately sync with iPhoto and iTunes will be greatly appreciated.
    Symptoms:
    1)   Sync:  It’s not completing the sync.  Below, I’ve provided all of my settings from the iTunes Summary tab so that you might tell me if I’ve selected any incorrect options.  I prefer to sync the “old school” way – by connecting to the computer – as opposed to syncing over the cloud. Perhaps this is what’s causing the problem? Here is a list of the steps displayed in the iTunes window as the sync progresses:
    waiting for sync to start (step 1 of 7)
    backing up (step 2 of 7)
    preparing to sync (step 3 of 7)
    determining apps to sync (step 4 of 7)
    preparing apps to sync (step 5 of 7)
    importing photos (step 6 of 7)
    waiting for changes to be applied (step 7 of 7)
    syncing apps / copying 1 of 4 (App name) (step 7 of 7)
    canceling sync
    apple icon
    2)   Photos: I've selected only certain of my iPhoto albums to sync to my iPhone.  All of the albums are correct/complete in iPhoto.  All of the albums are listed on my iPhone, both before and after the sync, but the albums are empty (no actual photos) before and after the sync. Perhaps this is tied to the fact that the sync isn’t completing, but because “importing photos” is one of the steps that the incomplete sync displays, I don’t know.
    3)   Apps: When I launch iTunes and click on the Apps folder under the Library listing, then click on the Updates tab, iTunes searches for any Apps needing to be updated and provides a list.  If I click on Update All, the Apps are successfully updated in iTunes.  But, when I plug in my iPhone so that the updates will transfer to the apps on my iPhone, the updates don’t transfer to the apps on my iPhone and those apps still reflect that they need updating on the iPhone.
    Other Potential Pertinent Info:
    The flash memory hard drive on my MacBook Air recently died (perhaps a month or two ago).  Apple had emailed me about a known issue and literally the next day, my MacBook Air crashed.  I installed a new flash memory drive and re-installed everything from a backup off of an external hard drive.  Everything seems to be working fine; it recreated accurately all of my software and data, including iPhoto and iTunes, the pictures and songs (respectively) for which are stored on that hard drive, as opposed to being on the flash memory in the MacBook Air itself.  However, I don’t recall if the start of the sync problem described herein started happening at the same time that I replaced the flash memory drive.  All I know is that the computer is working perfectly in all respects and that even as the sync is failing, it at least says that it’s doing the right things and looking in the right places (e.g., the list of albums on my iPhone matches the list of albums in iTunes, etc.).
    Settings/Status:
    MacBook Air
    OSX v. 10.9
    iPhoto ’11 v. 9.5 (902.7)
    iPhone iOS 7.0.4
    iTunes v. 11.1.3 (8)
    Summary Tab
    Backups (This Computer)
    Options
    Automatically sync when this iPhone is connected
    Sync only checked songs and videos
    Photos Tab
    Sync Photos from iPhoto (429 Photos)
    Selected albums, Events, and Faces, and automatically include (no Events)
    Albums – 9 are selected

    You need to download iTunes on your computer. iOS 6 requires the latest version of iTunes which is 10.7.

  • HT204053 I have a problem. I bought Pages and Numbers for my iMac and so far everything was OK.  Suddenly i have a problem with connection to iCloud. Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded in iCloud.

    I have a problem.
    I bought Pages and Numbers for my iMac and so far everything was OK.
    Suddenly i have a problem with connection to iCloud.
    Dokuments created on iMac in Pages or Numbers are not transfered to iCloud. Not uploaded to iCloud. There is a sign  (small shape of iCloud), that they are waiting to be uploaded to iCloud.
    I think the iCloud is OK.
    i can see and manage documents in iCloud. i can create them on iPad and  see them and delete them in iCloud.
    But not on iMac.
    i dont know what has happened and I am not abble to find the solution. It was OK till some days ago….

    I have a similar problem! Everything stopped working after upgrading to Mac OS 10.8.4 through the App Store. Help!

  • In IPhoto I changed movie dates after thumb nails were created in IMovie but the new dates are not showing up in IMovie.  Is there someway to refresh the IPhoto event in IMovie?

    Background:  I'm transferring file folders from a Visa laptop via an external hard drive to my IMac.  In the folders are photos and videos from different cameras.  SO I first tried to import to IMovie but it would not recognize any of the files.  So then I imported into IPhoto and both photos and videos were imported and I created events for each folder.  When I first opened IMovie I had to wait for it to create "thumb nails".  Then I could view the events in IMovie BUT the video clips are not together because they have vastly different dates and are mixed with videos from other events.  I looked at the dates and said I can fix that in IPhoto which i did but those new dates are not showing up in IMovie.    I think I need to somehow refresh the event data that Imovie is using but have not found how to do that in either IPhoto or IMovie. 
    I'm doing this on three events with about 100 photos and videos.  But I have many 1000s more to do so need to know how to either fix this or delete these events, reimport, change the dates, then open again in IMovie.   I'm sure that would work but I can't understand why changing the dates in IPhoto is not being reflected in IMovie.  
    Appreciate any tips or pointers.
    OBTW this is my first question as a first time Apple owner. 

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • Asset value date and posting date are not in same fiscal year

    Hi,
    Our business user has created an asset under an incorrect asset class, which he is trying to transfer to a new asset whcih was created under correct asset class. However system is restricting user with the error message "Asset value date and posting date are not in same fiscal year". Can you please advise me how we can proceed further with this error.
    Regards,
    Asam.

    Hi,
    To transfer one asset to another asset within a company code can be done through ABUMN only.
    While doing this transfer you have enter the document date, posting date, and value date for the transaction, but all these dates should be in same fiscal year only.
    In your case you must have been entered the dates for asset value date and posting date , and these two dates are in diff financial years.
    Please make sure that both the dates are in same FY.
    Hope this will fix your issue.
    Thanks,
    Srinu

  • Changes to order are not transferred

    Hi,
    our PPDS users are facing an issue in Product Planning Table ( transaction /sapapo/ppt1).
    When we create a planned order and convert to production orders, the system converts with out any issues.
    After some time when we drag the production order to a new time ( in DS board), fix the order, then when we save, we get the message " Changes to order 100065265 are not transferred" and the order moves back to where it was... The  # 100065265 is our production order in created status.
    Looking at the error details, I thought there are some changes to the order being done in R/3, but there were no changes to that order in R/3 at that point and the same change, if done after some time goes through...
    This is happening almost for every order and it's annoying to keep click ok on this order, wait and then reprocess again...some time we get the error multiple time before the system accepts the changes...
    Any idea on what might be happening?
    More details about the error,
    ===
    Changes to order 100065265 are not transferred
    Message no. /sapapo/cdpssimulati015
    Diagnosis:
    The changes made to the order 100065265 in SAP APO can not be transferred as the order has already been changed by the linked R/3 system
    System Response:
    If you have made minor changes to an order in SAP APO and changes to this order are simultaneously being transferred from the R/3 system, only the changes from the R/3 system are adopted. The changes you made to the order manually in SAP APO are lost
    In technical information, I see the application area as /SAPAPO/SIMULATI, MESSAGE # 015 and main program SAPLSHL2.
    Thanks,K

    Hi,
    It seems the production order details are getting updated in ECC with order related settings you maintained at ECC, like settlement profile, etc., During that time, if you try to change the production order in APO, since the ECC update for the order is not yet completed, it gives the error. Thats why after sometime, when you change the production order, it allows you to change.
    Please try this, once you convert the order in APO, go to ECC and try to open the order in CO02 or CO03, it will give you an error the order is already being processed by XXXX. If so, then it is the time taking to update the production order in ECC.
    Also, try this, once you convert the order, immediately save and after sometime you change the time.
    Please check and revert.
    Regards,
    Manimaran M.

  • SRM PO Changes are not transferred to Back end

    Hi All,
    I have a problem in PO changes.
    We are using extended classic scenario. User create PO in the portal and the PO will be transferred to the back end R/3 via RFC. Earlier in 4.7 we the PO's are updated with the changes.
    Recently we have upgraded to ECC 6.0. Now the changes are not transferable.
    Could any one help me to fix this issue and please give the steps that i need to check for fixing it.
    Regards
    Pratap J

    Hi Thaigo,
    Thanks for your input. please go through the below.
    These are the table entries in BBP_BACKEND_DEST
    Client Logical system Destination                        System type RFC possible Local FI validation
    500    EP1CLNT500     EP1CLNT500                         EBP_5.0                  X      0
    500    RP1CLN500D     RP1CLNT500DIAG                     R/3_4.70    X                   0
    500    RP1CLNT500     RP1CLNT500                         R/3_4.70    X                   0
    In the table, it was still 4.70. So it needs to changed to ERP_4.0 ?
    Regards
    Pratap J

  • The actual date is not transferred from the (PS) milestone

    Hello ,
    In an order with header billing plan dates that are value-based, the actual date is not transferred from the Project System (PS) milestone, even though the actual date of the assigned milestone was changed via transaction CJ20N.
    We are repeatedly facing this error , I have applied Note number 1395078 but still once in a while I am still facing the issue
    Regards
    Muralidharan.S

    Check the following path in SPRO
    IMG - PS - Revenue & earning - planned revenues - Automatic Plan Revenue cal - Maintain Billing Plan Settings
    There, you use the billing plan to plan dates on a WBS element whose payment requests or invoices relevant to sales are to be sent to customers.
    The system updates the planned revenue and planned payment receipts to the relevant WBS element. The planned revenue is updated using the revenue element stored in the planning profile for the work breakdown structure and using the financial item assigned to the revenue element.
    You make the settings given below for the billing plan. To do this, you carry out the following steps:
    - Maintain billing plan type
    - Maintain date description for billing plan
    - Maintain revenue element for billing plan
    - Assign billing plan type to project profile
    Hope this can assist you.
    Thanks & Regards
    JP

  • Tp import fails with error "data files not transferred"

    Hi colleagues,
    I am working on transport requests. I had issued out the <i>tp addtobuffer SIDKxxxx <sid>  pf=TP_DOMAIN_SID.PFL </i> command for a number of transport requests at OS level; but when i then try to do <i>tp import SIDKxxxxx <sid> client= u18 pf=TP_DOMAIN_sid.PFL</i>, i get this error: "Data files are not transfered</b>" in the QAS system. Everything works fine in PROD though. What could be the reason for this. I can't get it done within the application either.
    Your responses appreciated.

    Hi,
    I guess you have individual transport directories. I f you have configured the Transport Domain and added the Other Two into the Domain and configured the Transport Route. You should be able to see the Some RFC Destinations in SM59.
    TMSADM@<SID>.<DOMAIN NAME>
    TMSSUP@<SID>.<DOMAIN NAME>
    Please check the Test connection. of all these RFC Destination. If these fail check if you have firewall issues between the system stopping the communication on Port 33<Instance No>.
    Thanks,
    Tanuj

  • Sales data are not integrated in R/3

    Hello
    I use BTE DE_BALE on R/3 to integrate data coming from CRM extension (EEWB). Everythig's fine in the customer FM in R/3 : I get the extension data and I add to table CT_IDOC_DATA segment E1KNVVM with these data, but they are not updated in R/3. I try to debughow the IDoc table CT_IDOC_DATA is integrated and there seems to be a problem. I don't know which ALE configuration has to be done to integrate CRM IDocs (IDoc type seemsto be DEBMAS..). How can I check it ? Is there somewhere I can check that data are not integrated ?
    Thanks

    Hi Karuna
    Nice to have a so quick help.
    Thanks
    Below the source code of my FM :
    DATA :
      gv_partner_guid     TYPE BU_PARTNER_GUID_BAPI,
      gv_partner         TYPE BU_PARTNER,
      gv_crm_application LIKE bapimtcs-gen_chrstr VALUE 'Z1HT',
      s_eewb_saledata    TYPE ZZ1HT_BUPA_MAIN_APPEND,
      t_salesdata TYPE ZZ1HT_TABLE,
      s_salesdata LIKE  LINE OF t_salesdata,
      t_knvv TYPE STANDARD TABLE OF KNVV ,
      s_knvv LIKE LINE OF t_knvv,
      s_bapimtcs TYPE BAPIMTCS,
      t_bapimtcs TYPE STANDARD TABLE OF BAPIMTCS,
      ls_e1knvvm LIKE E1KNVVM.
      REFRESH : t_salesdata,t_knvv,t_bapimtcs.
      CLEAR : s_salesdata,s_knvv,s_eewb_saledata,gv_partner_guid,gv_partner,
              s_bapimtcs,ls_e1knvvm.
      IF sy-uname EQ 'SAGUETTA'.
        break-point.
      ELSE.
        EXIT.
      ENDIF.
      MOVE is_complex_structure-header-object_instance-bpartnerguid
      TO   gv_partner_guid.
      MOVE IS_COMPLEX_STRUCTURE-header-object_instance-bpartner
      TO gv_partner.
      LOOP AT it_bapimtcs INTO s_bapimtcs.
        APPEND s_bapimtcs TO t_bapimtcs.
      ENDLOOP.
      CALL FUNCTION 'COM_BUPA_BAPIMTCS_TO_SET'
        EXPORTING
          iv_partner_guid = gv_partner_guid
          iv_application  = gv_crm_application
        CHANGING
          ct_bapimtcs     = t_bapimtcs
          cs_set          = s_eewb_saledata.
      MOVE s_eewb_saledata-ZZ1HT_DATA TO t_salesdata.
      LOOP AT t_salesdata into s_salesdata.
        CALL FUNCTION 'PI_BP_INIT_IDOC_STRUCTURES'
          IMPORTING
            ES_E1KNVVM = LS_E1KNVVM
          EXCEPTIONS
            OTHERS     = 0.
        MOVE s_salesdata-data_key-salesdom(4) TO LS_E1KNVVM-vkorg.
        MOVE s_salesdata-data_key-salesdom+4(2) TO LS_E1KNVVM-vtweg.
        MOVE s_salesdata-data_key-salesdom+6(2) TO LS_E1KNVVM-spart.
        MOVE s_salesdata-data-perfk TO LS_E1KNVVM-perfk.
        MOVE s_salesdata-data-lprio TO LS_E1KNVVM-lprio.
        CT_IDOC_DATA-MANDT = sy-mandt.
        ls_e1knvvm-msgfn = '004'.
        CT_IDOC_DATA-SEGNAM = 'E1KNVVM'.
        CT_IDOC_DATA-SDATA  = ls_e1knvvm.
        APPEND CT_IDOC_DATA.
        CLEAR ls_e1knvvm.
      ENDLOOP.

  • Event dates are not bolded by Date Navigator in Outlook 2010

    Event dates are not bolded by Date Navigator in Outlook 2010 on my own  calendar.  Events are set to busy but it is not working. View Settings > Other Settings > "Bolded dates in Date Navigator represent days containing items" is
    checked. This previously worked for 2+ years but recently stopped working. All plugins were disabled, Outlook 2010 was uninstalled and then re-installed. OST file was deleted and re-synchronized with Exchange 2007. While the OST was re-synchronizing the
    bolding worked properly but upon next restart of Outlook it went away. Another symptom is that my Scheduling Assistant does not show my free/busy times correctly in my local view. If I look at my own schedule via the Scheduling Assistant of another user, the
    free/busy times show up correctly. My webmail account also correctly shows bolded dates and free/busy suggesting that this is a local problem. Some screen shots below. Anyone have any ideas as to what I need to tweak? Using Oulook 2010 v.14.7116.500 (32-bit).
    This is not a shared calendar.

    Hi,
    If you want to completely uninstall or remove Microsoft Office 2010, we can refer to the following article to do it:
    http://office.microsoft.com/en-us/support/how-to-uninstall-or-remove-microsoft-office-2010-suites-HA104027750.aspx
    Additionally, since the issue doesn’t happen in other computers, I think the issue may be also caused by some third-party programs in your original computer. If the complete uninstallation doesn’t help for this issue, I suggest we can try to perform a clean
    boot in your Windows for more troubleshooting:
    http://support.microsoft.com/kb/929135/en-us
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Free of charge items, ie price = u00A30.00 are not transferred to backend.

    Free of charge items, ie price = £0.00 are not transferred to backend. PO created with held status, but the SRM PO item IR flag is selected. If we manually amend the SRM PO item to remove the 'invoice receipt' flag, then save the PO, the PO does get to the backend with a price of zero, the IR flag de-selected and the 'free' item flag selected.
    How do we manage to get the PO with free items to the backend without having to manually change the held PO in SRM? We are on SRM 5.0 using extended classic.

    Hi
    <b>We have done this type of requirment.. several times.. This is easily possible ..</b>
    <u>You need to Implement the BADI - BBP_CREATE_PO_BACK using SE18 Transaction.</u>
    <b>Either you can do this sample code inside BAPI (Make changes accordingly) or inside the BADI - BBP_CREATE_PO_BACK / BBP_CREATE_PO_BACK_NEW depending on your requirement.</b>
      LOOP AT po_items INTO ls_po_items WHERE net_price IS INITIAL.
    * Reset the IR Indicator for Items with Zero net price
        ls_po_items_add_data-po_item = ls_po_items-po_item.
        ls_po_items_add_data-ir_ind  = space.
        ls_po_items_add_data-gr_ind  = 'X'.
        ls_po_items_add_data-gr_non_val = 'X'.
        APPEND ls_po_items_add_data TO po_items_add_data.
      ENDLOOP.
    <b>Related link -></b>
    Re: Final Entry/ Final Invoice Indicator to be checked Auotmatically
    <u>Do let me know.</u>
    Regards
    - Atul

  • In XI pro, exporting PDF to Excel problem.  Excel columns and data are not properly aligned.  Help?

    I used 30 day trial of Acrobat XI and all the functions work perfectly.  But, when I buy the program (either download or disk) my PDF that export to Excel is not working.  The excel columns and data are not properly aligned as they should be.  The Trial version aligns everything perfectly.  What is happening?  I use a MAC 10.9.5.  But this shouldn't matter because the trial version works perfectly.  Can anyone help?

    just found out that this is posted in the wrong section.

Maybe you are looking for