The issue about the ResultSet.TYPE_SCROLL_INSENSITIVE

my database is oracle ,the oracle charset is "us7ascii".and i save chinese charset in the database ,normally ,i get the data from the database ,use
Statement s =conn.createStatement();
then execute the sql, then use
new String (string.getBytes("iso-8859-1"),"gbk")
i can get the correct data.but if i use:
Statement s = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
still use:
new String (string.getBytes("iso-8859-1"),"gbk")
convert the encode,but i can't get the correct data ,the result is "?????" ,why ?

rp0428 wrote:
Really? Please explain how that is possible.
The US7ASCII only uses 7 bits to represent each character so can only represent 128 characters; none of them are chinese.Perhaps the sleazy hack "new String(string.getBytes())" actually works to encode and decode characters between Unicode and 7-bit ASCII -- but I haven't got the energy to figure out how it might work. My response to this sort of question is "Configure Oracle with the right character set in the first place so you don't have to deal with it at the application level".

Similar Messages

  • Attention to the apple developer, u need to check the issue about the iMovie which installed in an iPad 4th gen. Is having a problem during closing the app from the theater page to the home screen. It doesn't closes exactly severally...

    Attention to the Apple developer, the iMovie which installed to the iPad 4th gen. has a problem when it's opened at the theater page it frequently couldn't be closed down to the home screen. The app page is actually blinking and cannot tap onto anything..

    Thanks for the swift reply, I have been looking online and a loose plug seems to be somewhat of an issue with many, I hope mine is actually a problem and not what others are experiencing. It's taken me this long to even reach out for the simple fact I HATE being a complainer but this is just horrible.
    Do you have an iPad 3 as well? And is yours not experiencing any issues close to mine?
    Thanks again!

  • Connectivity issue about the screen mirroring

    My Z2 phone can not connect to sink device with the screen mirroing.
    I try to analayze this issue by the wireshark application.
    My analysis result is as below.
    The operating channel of GO Negociation Confirmation is set to 36ch or 44ch when Z2 phone is P2P GO.
    In case of 36ch,  P2P sequence proceeds normally.
    In case of 44ch,  P2P sequence does not proceed, because Beacom frame is not transmitted from Z2 phone.
    Does Z2 phone have the usage restriction of 5GHz band with P2P GO ?
    [Device Information]
    Model number : D6503
    Processor info : Qualcomm MSM8974PRO-AB
    Android version : 4.4.4
    Baseband version : 8974-AAAAANPZQ-00027-23
    Kernel version : 3.4.0-perf-gd4d661a BuildUser@BuildHost #1 Fri Sep 19 18:10:07 2014
    Build number : 23.0.1.A.3.12

    Thanks for testing and glad to hear that it's working now with your Z3.
    We have looked into this more and also see that you have selected Japan as country in your accont. If you are located in Japan the cause of this issue was due to regulatory issues and channel selection. There's been an update for this in the update to Android 5.0 so that wrong channel is not selected which is why you're not seeing the issue after the update.
    We have also started rolling our the update for Z2 but i'm afraid i can't see when the update will reach Japan. We are currently rolling out the update for the nordics and baltics.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • How come the topics about the MacBook screens with defects are gone?

    Could an admin please tell me why the threads about the "undulating waves" visible when the screen is at half-brightness keep getting removed? I'm finding it very frustrating to use this discussion board, and with Apple Genius Bar employees denying the problem exists, it's hard to find support without being able to verify that others are experiencing this issue.

    Hi Howard,
    I'm not an Admin, but I found these.
    Undulating waves when screen dimmed (and dark bottom right corner always)
    display problem... when brightness is low..
    ali b

  • On iTunes when i plug my iphone in, the bar at the bottom with contains the information about the capacity of my iphone, it has a bar called 'other' which has 4GB. I don't know what is taking up that space or how to get rid of it. please help :)

    On iTunes when i plug my iphone in, the bar at the bottom with contains the information about the capacity of my iphone, it has a bar called 'other' which has 4GB. I don't know what is taking up that space or how to get rid of it. please help

    You can reduce the size to normal, which is about 1GB, by restoring the phone.
    Backing Up, updating, and restoring your iPhone and iPod touch software
    The size of this part can increase when something goes wrong during a sync, or some files can't be read anymore by iTunes.

  • Is there any way to block the shutdown of the device is protected by password? This function would help in case of theft with the issue of the find my iphone app.

    is there any way to block the shutdown of the device is protected by password? This function would help in case of theft with the issue of the find my iphone app.

    Device experiences issues, locks up.
    I need to do a reset.
    How would I do that with a pass code lock in place?
    Wait until the battery dies?
    Apple's changes in iOS 7 are smarter.
    "Losing your iOS device feels lousy. Thankfully, Find My iPhone can help you get it back. But if it looks like that’s not going to happen, new security features in iOS 7 make it harder for anyone who’s not you to use or sell your device. Now turning off Find My iPhone or erasing your device requires your Apple ID and password. Find My iPhone can also continue to display a custom message, even after your device is erased. And your Apple ID and password are required before anyone can reactivate it. Which means your device is still your device. No matter where it is."
    http://www.apple.com/ios/whats-new/

  • How can i print the description about the field?

    dear folks
    i want to develop a report in that i want to display all fields in MM03 for all views.
    there i want to display first Field description (not field name), then field value.
    ie, for MATNR:
    Material Number = xxxx (value)
    for SPART:
    Division = d1.
    how can i print the description about the field?

    CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname        = 'MARA'
          FIELDNAME  = 'MATNR'
        TABLES
          dfies_tab      = t_dfies
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
    you will get all the info for the field in t_dfies in that u have the field description also
    run the above FM from se37 and pass tabname = MARA and fieldname = MATNR
    see the results in DFIES_TAB in internal table

  • How to view all the issues in the same page in OTM

    HI,
    I have created 20 issues in OTM but I am able to see only 10 issues at a time.So how can I view all the issues in the same page.

    Hi,
    Login to OTM then you can see "tools"in the top most right corner click on that and select options.In the options popup window select "Tree preference" change the number of nodes.
    Regards
    Rajesh

  • I ran into the issue of the 32-bit file not being recognized in LR 5.6

    I ran into the issue of the 32-bit file not being recognized in LR 5.6 after it has been saved in PS. I tried every type of file I could save a file as in CC but none of them would be recognized or said it was corrupt.  I had exported 3 files to Merge in HDR Pro Photoshop as 32 bit files.  I then saved in PS and returned to LR 5.6, but it said the bit depth was not supported .  Is this a known issue with LR 5.6 / PS CC?

    Hi,
    this might help: Video Tutorial – 32-bit HDR TIFF files in LR 4.1 « Julieanne Kost's Blog (Only 32 bit TIFF is supported).

  • Help, How about the price about the computer components in Toronto

    help, How about the price about the computer components (CPU,
    RAM and so on...) shall I bring CPU and RAM to Toronto?
    I am Chinese. I live in shanghai...
    And, are there some websites which provide computer hardware price information?
    I really appreciate your help.

    Check out some of the major retailers for a general idea:
    www.futureshop.ca
    www.staples.ca

  • Why has not received the message about the change secret Questions?

    Why has not received the message about the change secret Questions on my email?

    Be patient. You don't get an immediately notification email. Record the Claim Number somewhere in case something goes wrong. It can take up to 72 hours. I got mine in about 54 hours.

  • Issue from the Customer about the Autogeneration - Any one Solve It.

    Hi all,
         (Please Read it Carefully and give a Solution to this Urgently)
         I developed one Screen ' Purchase Order '. I wrote the Code to generating autonumber for Purchase Order.When you have to open the 'Purchase Order' the autogenerated number is shown like this 'DOC-XXXXX'.
             There is only one record is stored on the Purchase Order table which is  'DOC-00001'.
             When we open the Purchase Order Screen at two Machine.it will shown the autogenerated number 'DOC-00002' on two Machine. I make to save the transaction of the Screens on two machines one by one and Saved Successfully.
    <b> First transaction has a autogeneration number 'DOC-00002' and Second one has a 'DOC-00003'.
    But In UI Part, Before Saving it shown the document number 'DOC-00002' for both screen.  This it the Ultimate problem customer will faced on Multi-user envirnoment on Network.</b>
    Any one tell How to Overcome this issue?????
    Please Help Me,
    Regards,
    Suresh.G

    Hi Suresh,
    What you can do is, show a message when you save the second purchase order.
    This is what SAP does for system objects.
    For example:
    I open two PO screens (in add mode). Both show Document number as 5.
    Then I save the forst PO. When I save the second PO, SAP shows a message telling actaul document number saved was 6.
    Thanks
    Kishor.

  • Need hlep! The issue about creating a logical system!

    Hi all,
    When I create a new logical system, and T-code is BD54. My user profile is SAP_ALL and SAP_NEW. The system pop-up the Warning message as follow:
    You are not allowed to change cross-client customizing.
    I have looked it into
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/b4/b0b13bb3acef3ce10000000a11402f/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/b4/b0b13bb3acef3ce10000000a11402f/frameset.htm</a>
    and the document explain the administrator role can create a logical system, but I do not know how to assign administrator role to a user.
    Could anyone tell me how to do it or other solution.
    Thanks in advance! Any help is appreciated!

    Hi Feng, Welcome to SDN.....
    <b>
    SAP_BC_BASIS_ADMIN</b> - Assign this Role to your User name in <b>SU01</b> and then try creating Logical system, Also check the Client setting in SCC4(such as the client Role, Cross-client object changes...). Hope this Resolves your issue.
    Cheers...
    Santosh.
    <i><b>Reward Points if Answer  is Usefull</b></i>

  • Reference tanble and ref.field issue about the datasource

    Hi all,
    I want to create a generic datasource by a database view in R/3.
    In the database view, there is one quantity filed which  refer to  a structure field not a table filed. Then I can not add the structure field into the database view.
    How can I do? Can I create the datasource by a query?
    many thanks!

    Hi Yang,
       Provide me your personal email id and I can send you step by step screenshots (Steps for creating an infoset).
    Here are the steps:
    1. Goto SQ03
    2. Create a User Group and assign your user id to it.
    3. Goto SQ02
    4. Enter a infoset name
    5. Assign the infoset to the user group you created in step 2.
    6. Now click on Create
    7. Select Radio Option "Direct read of table"
    8.  Specify the table name
    9. Save and generate the infoset.
    10. goto RSO2 and follow the steps for creating the generic datasource.
    11. Specify the Infoset name.
    If you have concerns .. let me know.
    Best regards,
    Kazmi

  • RTMP through RTMPT. The issue about configuration

    The root cause of the problem is that Flash Player in case of RTMPT uses hard-wired URLs to communicate with the messaging server. These URLs are
    rtmpt://server:8080/fcs/..
    rtmpt://server:8080/open/...
    rtmpt://server:8080/idle/...
    rtmpt://server:8080/send/...
    rtmpt://server:8080/close/...
    The words in the path represent various actions used in the protocol.  As you can see, there is no context path between these words and the port number. Unfortunately, Flash Player does not allow any customization for these URLs. As a result, in order to be able to process these requests, the RTMP/RTMPT messaging server  must be deployed in the root of the web server. Thats right? Or I can deploy messaging server in the difference context path of the web server? Can I make customization for these URLs?

    Hi Faiz,
    As Erik said, RTMP is not supported on WSA.
    But, if you want to block real time streaming video content, you can try to do this on your corporate firewall by blocking TCP traffic with default RTMP destination port 1935.
    On the same manner, if you would like to allow usage of RTMP, you should create access-list line on your corporate FW/router that will allow TCP traffic with destination port eq 1935.
    On the other hand, if destination media streaming server uses RTMPT protocol then you should be able to see the request in WSA, as requests are tunneled inside HTTP.
    Best regards,
    Ana
    Ana Peric
    Senior Customer Support Engineer - WSA

Maybe you are looking for

  • How to change the lines in a standard report

    Hello experts, i would like to change the line limits in some ot the standard repoorts, ie RFGSRRCUA and RFBILA00 how do i go about please help step by step? Tatenda Chaibva

  • Mac mini displays the wrong resolution

    Hi everybody. My Mac mini recently began starting up in the wrong resolution (1024x768, instead of the usual 1280x1024.) From my experience with older, 680x0 Macs, I reset the PRAM. This fixed the problem, but I find that I have to do it every time I

  • Does SLD must have a dedicated server?

    hi! Does an SLD must have a dedicated server and separated from the IR and ID?

  • CSS scrolling window for thumbnails

    Hello, I'm in the process of designing my first CSS portfolio site. I have a lot of thumbnails and frankly they look a mess because there are so many. Therefore I want to contain them within some kind of simple scrolling window. My question: Is this

  • How to get ipad screen repaired?

    Best suggestions for repair.  My ipad screen has two cracks.  Apple store and staff non responsive. Thanks