How to convert from UNICODE (UTF16) to UTF8 and vice-versa in JAVA.

Hi
I want to insert a string in format UTF16 to the database. How do I convert from UTF16 to UTF8 and vice- versa in JAVA?. What type must the database field be? Do I need a special set up for the database (oracle 8.i)?
thanks
null

I'm not sure if this is the correct topic, but we are having problems accessing our Japanese data stored in UTF-8 in our Oracle database using the JDBC thin driver. The data is submitted and extracted correctly using ODBC drivers, but inspection of the same data retrieved from the GetString() call using the JDBC thin driver shows frequent occurrences of bytes like "FF", which are not expected in either UTF8 or UCS2. My understanding is that accessing UTF8 in Java should involve NO NLS translation, since we are simply going from one Unicode encoding to another.
We are using Oracle version 8.0.4.
Can you tell me what we are doing wrong?
null

Similar Messages

  • How to transfer texts from text control to table and vice versa

    Hi
    if anybody can give me link or any code giving how to transfer text from text control to table and vice versa, that will be of great help to me
    THanks in advance

    Rashmi,
    Use the methods GET_TEXT_AS_R3TABLE / SET_TEXT_AS_R3TABLE and then you will have to use the SAVE_TEXT to store in the database.
    The GET_TEXT_AS_R3TABLE method will give you back a internal in which text, in which text on the screen is existing. Similarly once you fetch the data from database using READ_TEXT, use the method SET_TEXT_AS_R3TABLE to put the text on the screen.
    These methods belong to class CL_GUI_TEXTEDIT class.
    Regards,
    Ravi
    note : Please mark all the helpful answers

  • I have the iPhone 4S and my daughter has the iPad 2, we share one Apple ID, is there anyway to stop her text messages from appearing on my iPhone and vice versa?

    I have the iPhone 4S and my daughter has the iPad 2.  We share my Apple ID.  Is there any way to stop her text messages from appearing on my phone, and vice versa?  She doesn't need to be reading my texts!

    no, there currently is no way of doing this. You can only create a second Apple ID.

  • Dynamic data flow from sales order to delivery and vice-versa

    Hi Experts,
    One of our teams working for a client (transportation industry) on ECC 6.0 is facing an issue in relation to copying of partner data. (Ship-to-party address field changes to be precise)
    Currently, whenever the partner address data changed in a Sale order, though delivery is already created prior to this change, the change done is dynamically getting reflected in delivery too. Further, if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    We have checked the copy controls under VTLA and didn’t find any specific modifications made in this regard. Our question is:
    Is there any configuration available in standard SAP through which the data updates (like header data viz. partner field data etc.) get dynamically updated forward and backwards in a sales flow(i.e. from sales order to delivery and vice-versa)
    Your help on this will be highly appreciated.
    Regards,
    Jagan

    if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    The standard functionality is if you change the address of a partner function, the same will get reflected in an existing sale order.  This being the case, can you reconfirm your statement that in delivery, if you change the partner function, the same will get updated in sale order also?
    G. Lakshmipathi

  • How to link idoc with its corresponding documents and vice versa...

    Hello Experts,
    What are the tables, transactions, etc that can link a certain document(e.g. PO, GR, invoice) to its IDoc and
    vice versa.
    Thank you guys and take care!

    Hi,
    The Message Control parameters from the partner profiles must also match the corresponding
    fields in the output type. These parameters include:
    u2212 Application
    u2212 Partner
    u2212 Partner function
    u2212 Output type
    Tcode  - NACE  (Output Control)
    Tables - SRRELROLES  (Object Relationship Service: Roles)
    Message Control is a mechanism by which documents are output based on certain conditions.
    1) The application id, communication structure and o/p determination procedure are responsible for triggering IDocs corresponding to a particular application document. For this to happen message control settings have to be done.
    2) Message Control u2013 also referred to as output control or conditioning technique u2013 is a cross-application component used as a service program in several areas. The basic concept behind Message control is to generate and manage outputs from an application and control their timings and medium of exchange.
    3) Message control settings can be done via transaction NACE or via transaction NACO.
    4) Starting point in message control in the u201COutput Determination Procedureu201D (Procedure within NACE txn.). Depending upon the configuration setting in SPRO this procedure is determined.
    A procedure defines a set of possible outputs for an application. We can define several procedures for an application, but only one can be configured as
    active (i.e. for a particular transaction document within an application only one procedure will be determined based on configuration settings).
    Eg->
    a) For Delivery (txn. VL01NO) the document type setting in configuration (SPRO -> Logistics Execution -> Shipping -> Deliveries -> Define Delivery types) determines the procedure.
    So whenever we save a document of particular application (of particular application id) and of particular document type, the particular o/p determination procedure is triggered.
    b) For sales, SPRO -> Sales and Distribution -> Basic Functions -> Output Control -> Output Determination -> Output Determination Using the Condition Technique.
    5) In the transaction NACE we can see that corresponding to application id (say u2018V2u2019 (shipping)) various procedures are defined:
    6) Before making the entry of the output type corresponding to a particular procedure, we have to define it with its attributes.
    The output type defines the characteristics and attributes of the output itself. We can access the output types on transaction NACE by selecting an application and clicking the Output type button.
    7) Access sequence defines a sequence in which business rules are checked for proposing an output type. It has following attributes:
    - A set of business rules or conditions.
    - A sequence in which the rules or conditions are checked.
    - A requirement that checks for business rules using ABAP programs.
    - An exclusive or inclusive strategy.
    We can access the access sequences on transaction NACE by selecting an application and clicking the Access Sequences button.
    Business rule 1 is based on SOrg./Distrib.Ch/Division/Customer. Business rule 2 is based on Sales Organization/Customer Number. Each business rule is, effectively, a set of fields defined in a condition table.
    8) Condition table specifies the key fields for a business rule. Hence for Business rule 1 the key is Sales Org., Distribution Channel, Division and Customer.
    9) Condition records are inserted in the condition table. The transaction is evaluated with the key (of the condition table based on business rule) and if the transactional data matches with the condition record the output is proposed.
    Condition records are defined at last.
    10) Several programs and tables are part of Message Control. For EDI, the following tables and programs will frequently be dealt with:
    *NAST - This table has an entry for the processing program used for an output type.
    *TNAPR - This table has an entry for the processing program used for an output type.
    *RSNAST00 - This program is used to process entries in the NAST table.
    *RSNASTED - This processing program exists for each output medium. ALE_PROCESSING is the routine in the RSNASTED program to process ALE outputs.
    11) Final overview of the components used in Message control to propose outputs.
    12) After doing all the settings for message control, the partner profile setting for this ALE scenario needs to be accomplished. We need to add the following entry to the outbound parameters of the partner profile:
    13) One important question that arises at this juncture is, how is the partner profile determined from the output type is case of ALE?
    This is information is stored in table EDP12 (Partner Profile: Outbound with Message Control). Based on the Partner type of receiver (RCVPRT), output type (KSCHL) and Application for message conditions - without value table (KAPPL), the Partner number of receiver (RCVPRN), Outbound process code(EVCODA), Message type (MESTYP) and other related values are determined.
    Regards
    Pugazhenthi.P

  • How can my husband access my iTunes purchases and vice versa?

    Can someone please advise me how to add my husband to my account to share my downloads and vice versa? I cannot find on iTunes how to do this and I am not that computer savvy - pretty please if you can, be specific as to what I am to do to make this happen - THANK YOU !!!

    Sorry, wrong link:
    How to use multiple iPods, iPads, or iPhones with one computer

  • How do I sync my event colors from treo 650 to iCal and vice versa?

    heres the deal:
    in using iCal and my Treo 650 (Verizon), I have been iSyncing the two together. While all the data and calendar events, contacts from Address book, tasks from task list transfer no problem, none of the event colors sync up. If an event from iCal is marked red, it moves to the Treo in "unfiled" gray. If the event is on the Treo and moves to the iCal, it is automatically shuffled under the default color code in the Options category.
    If the event is on both the Treo and iCal as red, and I edit the iCal version and then sync the two, it changes the Treo version back to "gray", even though both tools have the same color options and the same categorizations. although this sounds like a small glitch, I run a tour guiding business with multiple tour guides and the color coding is crucial to my PDA, so its driving me absolutely crazy. I bought my Treo with the promise that everything would sync up with the iCal, and it wont.
    What do I do?

    The behavior you describe is a characteristic limitation of the iSync Palm Conduit.
    The Missing Sync for Palm OS from Mark/Space supports categories and groups, and therefore—on advanced Palm OS devices like your Treo 650 smartphone—calendar colors. You can learn more about this application here:
    http://www.markspace.com/missingsync_palmos.php
    The Mark/Space Knowledge Base says this about categorization:
    Calendars and Categories
    • iCal events are assigned to a Palm category with the same name as the calendar they are part of. If the category does not exist on the Palm device, the Events conduit creates a category with the calendar name and assigns the event to that category. If that category cannot be added—due to space limitation—the event is added to Unfiled.
    • Palm events/tasks that are in a specific category are sent to that calendar in iCal only if a calendar with the same name as the category exists. If the calendar does not exist, the record will be sent to the calendar that is chosen in the conduit configuration sheet. If the calendar is read only, the event/task will be ignored.
    • On the first synchronization of read-only calendars, the items are properly assigned to the correct category on the device. If any edit is made to an item in a read-only calendar the change is ignored but will persist on the device until something forces it to be overwritten by data from the desktop, for example: if the read-only item was updated. If an item is assigned to a read-only calendar it will be switched to the calendar you have selected in your preferences.
    • Calendars listed in the conduit settings are pulled from Sync Services, meaning that if iCal has not finished synchronizing with Sync Services the full list of calendars may not be read.

  • Data from R/3 to APO and vice versa

    Hi,
       Does anyone know what data is usually sent from R/3 to APO and from APO to R/3?
    Thanks

    Hi Disha,
        could you please let me know what is PPM and also what data is transferred back to R/3?

  • Changing from finite to continuous samples and vice versa?

    Hello,
    I have a problem which I'm trying to overcome: I have a measurement system consisting of an analog output and reading two analog inputs. I would like to run it continiously to monitor the current values (without saving the previous data), however, when I click something like a record button, I'd like to start a recording of a predefined period (like a finite samples measurement) and then restarting the monitoring without saving again.
    Currently my measurement program is based on the examples "Continuous AO" and AI vis, and are made with continuous sample mode and while loops. How can I insert a record button?
    I tried putting event handlers in the measurement loop, however it suspended the loop from running.
    I attach a screenshot of my current measurement loop. (With the shift register I tried to read data, however I cannot get it out of the loop, until the loop is stopped)
    Thank you in advance
    Engage! using LV2012
    Attachments:
    question.png ‏81 KB

    I have tried adopting something similar, however it doesn't work the way it should. (Or at least the way I think it should) Could you please help me ironing it out? I've seen some vis on the internet with queue-controlled (but only one-way) and tried adopting them.
    The MainProgram vi is the app, with some settings (now limited to a signal file selection and channel settings). Then the data acquisition can be started by clicking the Start Acq button.
    And here come my problems: first sometimes the queue starts, sometimes it doesn't (or at least it doesn't start the data acquisition). And the main point: I set the sample rate, yet it is acquired at a much-much slower rate (my signal has a period time of 4 seconds, yet it needs at least 20 seconds to get near finishing). And the strangest: sometimes, mostly after some time (about 1-2 min) it hangs and does nothing with the daq (yet labview seems responsive, just my program hangs somewhere).
    So now only the controlled acquisition is in the problem and first I don't care about forwarding the data for analysis and saving. (That seems to be the smaller problem).
    What am I doing wrong? Thanks for your help. 
    I attach all the files.  (MainProgram is the app itself, MY.SIGNAL is the signal file I want to output.) I use a USB-6211 device. (at work a physical one, at home a simulated one).
    Engage! using LV2012
    Attachments:
    queued_daq.zip ‏366 KB

  • How to use javascript variable in BSP/ABAP and vice versa

    Hello Experts,
    In IC WEBCLIENT, there is a view.In the view.htm i want to fetch  the screen resolution and as per the resolution i want set the width of that view.
    1, I wrote the below  javascript to fetch the screen resolution.
       Can i use a notmal ABAP variable inside the javascript? and   If i use can i access that variable after the javascript.?
       Can i assign a javascript variable to a nrmal abap variable??
       The code sample  is like :
    Start of javascript
       if (screen,width == 1024 )
         lv_width = 500  "lv_width is an ABAP variable.
      else
        lv_width = 700
    **END OF JAVASCRIPT
       **Now i want to use lv_width  to assign to a table view attribute(Width)
    <crmc: tableview..
                    width = <%= lv_width >
    the code is not giving any error. But the problem is that lv_width is not giving the correct value, its getting initialized to initial value...
    Requesting the experts to please provide some suggestions/solution for the above issue.
    Thanks and Regards
    Sudhansu

    Hello Sudhansu,
    First of all there was a little mistake at my previous answer:
    you got lw_width = 700
    because at Server Side you have following code:
    lw_width = 500.
    lw_width = 700.
    but if you were writing your code like this:
    <%=lw_width %> = 700.
    then you will get the result that I was talking about : 0 = 700
    Sorry for the mistake
    Now for your question:
    if you want to get a value from the server and assign it to JScript variable you should write like this :
    var aaa;
    aaa = <%=lw_width %>;
    this code assign the server variable lw_width value into aaa  JScript varible.
    I'm not sure what exactly you want to do but look at this link:
    http://www.pageresource.com/jscript/jscreen.htm
    to get the idea how to get and use Screen Resolution variables at your JScript code.
    Good luck
    Eli Steklov
    Please Reward Points if it Helped

  • Attachment from webdynpro abap to workflow and vice versa

    I added  the attachment using the following code from my webdynpro abap application:
    DATA: lv_xstring TYPE xstring,
            att_id TYPE swr_att_id,
            ls_msg_ln TYPE TABLE OF swr_messag,
            ls_msg_str TYPE TABLE OF swr_mstruc,
            lv_objkey TYPE swr_att_doc_id,
             ls_header             TYPE swr_att_header.
      lv_xstring = lv_file.
      ls_header-file_type      = 'B'.
      ls_header-file_name      = 'Attachment'.
      ls_header-language       = sy-langu.
      CALL FUNCTION 'SAP_WAPI_ATTACHMENT_ADD'
        EXPORTING
          workitem_id          = lv_wi_id
          att_header           = ls_header
         att_bin              = lv_xstring
         do_commit            = 'X'
       IMPORTING
         return_code          = rc
         att_id               = att_id
    TABLES
       message_lines        = ls_msg_ln
       message_struct       = ls_msg_str .
    I see the attachments in the workitem but am unable to open the attachment.
    Another question is how can I show the same documents in another webdynpro application as attachments.
    Thanks,
    ST

    Hello,
    Try specifying file_extension = 'DOC' like in this thread (see Pavan's code about halfway down) :
    attachment to _Attach_Objects in user dicision step
    regards
    Rick Bakker
    Hanabi Technology

  • Same MessageID  from sender(Webservice) --  PI --  ECC and vice versa

    Folks,
    We have a sender and receiver  webserver which has its own monitoring system in it and it tracks messages by means of Message ID which it creates .
    Now this web service when hits PI it sends the message ID in a field in payload.
    The message ID which the webservice sends is now different then which is created in PI as the  message propagates
    The same message ID is created in ECC as we all know .
    Now Our problem is we are  finding it difficult to track messages from webservice Outbound as well as inbound
    If there are 100 messages we have to search on the basis of time only , we cant search on message ID
    My question is can we have a unique message ID throughout the scenario.
    ( i.e webservice -- PI-- ECC and ECC -- PI --Webservice)
    Please  help
    thanks
    Ninad

    Thanks Gouri ,
    In case of webservice sender the webservice sends a message ID in a payload ( they have there own monitoring using there own message ID )
    Being in Support , I get a call that message belonging to  xxxxx message ID has failed. Now when I look in SXMB_MONI
    I see 1000 messages between same sender and receiver.
    I have to check payload and check the said message ID and then find the message , this is Cumbersome
    hope we find some better approach
    Thanks
    Ninad

  • MFP Anomaly Detected Access Points are moving from one wlc to another and vice versa

    Hi together,
    a customer has lost some Access Points to another WLC with 7.2  and then they come back after 15 minutes to the origin WLC with 7.5
    Attached the messages
    MFP Protection is configured as optional
    152
    Wed Nov 27 05:33:26 2013
    MFP Anomaly Detected - 1 Not encrypted event(s) found as   violated by the radio 58:bf:ea:0f:67:4a and detected by the dot11 interface   at slot 1 of AP 58:bf:ea:0f:67:40 in 300 seconds when observing . Client's   last source mac 70:11:24:e4:43:0f
    153
    Wed Nov 27 05:31:40 2013
    AP Disassociated. Base Radio MAC:88:43:e1:56:91:d0
    154
    Wed Nov 27 05:31:40 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:88:43:e1:56:91:d0 Cause=New Discovery Status:NA
    155
    Wed Nov 27 05:31:33 2013
    AP Disassociated. Base Radio MAC:58:bf:ea:0f:73:d0
    156
    Wed Nov 27 05:31:33 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:58:bf:ea:0f:73:d0 Cause=New Discovery Status:NA
    157
    Wed Nov 27 05:31:33 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:58:bf:ea:0f:73:d0 Cause=New Discovery Status:NA
    158
    Wed Nov 27 05:31:28 2013
    AP Disassociated. Base Radio MAC:58:bf:ea:0f:fc:20
    159
    Wed Nov 27 05:31:28 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:58:bf:ea:0f:fc:20 Cause=New Discovery Status:NA
    160
    Wed Nov 27 05:31:28 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:58:bf:ea:0f:fc:20 Cause=New Discovery Status:NA
    161
    Wed Nov 27 05:31:17 2013
    AP Disassociated. Base Radio MAC:b4:e9:b0:e4:02:20
    162
    Wed Nov 27 05:31:17 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:b4:e9:b0:e4:02:20 Cause=New Discovery Status:NA
    163
    Wed Nov 27 05:31:17 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:b4:e9:b0:e4:02:20 Cause=New Discovery Status:NA
    164
    Wed Nov 27 05:31:15 2013
    AP Disassociated. Base Radio MAC:a4:18:75:eb:da:b0
    165
    Wed Nov 27 05:31:15 2013
    AP's Interface:1(802.11a) Operation State Down: Base Radio   MAC:a4:18:75:eb:da:b0 Cause=New Discovery Status:NA
    166
    Wed Nov 27 05:31:15 2013
    AP's Interface:0(802.11b) Operation State Down: Base Radio   MAC:a4:18:75:eb:da:b0 Cause=New Discovery Status:NA
    167
    Wed Nov 27 05:28:26 2013
    MFP Anomaly Detected - 35 Not encrypted event(s) found as   violated by the radio d8:24:bd:2f:df:6f and detected by the dot11 interface   at slot 1 of AP d8:24:bd:2f:df:60 in 300 seconds when observing Deauth.   Client's last source mac 00:23:14:a7:e3:54
    168
    Wed Nov 27 05:23:26 2013
    MFP Anomaly Detected - 23 Not encrypted event(s) found as   violated by the radio f8:4f:57:a5:40:b2 and detected by the dot11 interface   at slot 0 of AP f8:4f:57:a5:40:b0 in 300 seconds when observing . Client's   last source mac 44:4c:0c:ba:27:77
    Don´t know at the moment how to handle it.
    Regards
    Alex

    Hi lAlex,
    Disable Client MFP under WLAN advanced tab & see if  this still occur
    Regards
    Rasika
    **** Pls rate all useful responses *****

  • Synching Contacts from Outlook (2003) to Iphone and vice versa

    Can anyone tell me how I can have edited contacts update same contact on the Ipohne and how can I get edits or new contacts I enter on my Iphone to add or change on my Outlook.  Other smartphones I had were able to perform this function.  Help anyone?

    Yes, Outlook is normally where the iPhone gets its contacts when using Windows. If the contacts are on an Exchange server and you set up mail, contacts and calendar (in Settings) on the phone to point to the server it will happen automagically.
    If the contacts are only on Outlook and you do not sync to an Exchange server they contacts will sync when you sync the phone to iTunes by cable. There is a one-time setup step; tap on the Info tab in iTunes when the phone is connected and check the box to sync Contacts.
    BTW, this is not a copy. It is a sync. Changes made on either side are copied to the other on the next sync or via push if through Exchange.
    Message was edited by: Lawrence Finch

  • PDF to Word.doc Converter and vice versa

    Hello!
    I am in need of a program capable to convert PDF files to Word documents and vice versa (eventually, a program for each way). The converter needs GUI and must handle images, tables etc. (not just plain text). Does anyone have any tip concering which
    program I should use? It has to be free as my working place has not budgeted with buying 100 licenses. :-)
    Thanks in advance!

    Free? You'll be lucky. Your best bet to achieve your requirements is a PDF compatible OCR application such as Finereader. Free it ain't!
    <IKT-kr> wrote in message news:[email protected]...
    Hello!
    I am in need of a program capable to convert PDF files to Word documents and vice versa (eventually, a program for each way). The converter needs GUI and must handle images, tables etc. (not just plain text). Does anyone have any tip concering which program
    I should use? It has to be free as my working place has not budgeted with buying 100 licenses. :-)
    Thanks in advance!
    Graham Mayor - Word MVP
    www.gmayor.com
    Posted via the Communities Bridge
    http://communitybridge.codeplex.com/

Maybe you are looking for