How do I get the proper UTF-8 NVARCHAR2 DB Value into a Java String?

Hello, I have a mixed char 8.1.7 database with UTF-8 as my NLS
charset. I used SQL Worksheet to enter test polish unicode
characters 50309,50310... into an NVARCHAR2 column using
insert...char(nnn using NCHAR_CS) and get the following result
from DUMP(columnname,1016):
Typ=1 Len=12 CharacterSet=UTF8:
c4,85,c4,86,c4,87,c4,88,c4,89,c4,8a.
Everything looks good.
Now, how do I get them out into a Java String and verify that I
have received the correct hex codes?
I have tried:
1. CHAR lChr = OracleResultSet.getCHAR(ColumnName, csUTF8); or
and lChr.characterStreamValue();
2. InputStream lIStr = arsResultSet.getBinaryStream(ColumnName);
3. String lStr = (String)arsResultSet.getObject(ColumnName);
and then:
lStr.getBytes("UTF-8"); or lStr.toCharArray();
I always get questions marks and negative byte values or the
values: 261,262,263,264,265,266.
I am using the latest 9.0.1. JDBC Thin drivers and the Oracle
extensions: OracleResultSet, OracleStatement etc...
Please let me know what class/method I need, to get the Oracle
NVARCHAR2 unicode string from the result set into a Java string
and what method to use to look at the underlying hex codes.
TIA for any pointers.

If I use in bdInt=sc.nextInt();a substring cannot be used.
Does anyone know how I solve this question without substring? Perhapse something I've mentioned above
sincerely h

Similar Messages

  • How do i get the music from my click wheel ipod into my itunes

    How do i get the music from my click wheel ipod into my itunes library.

    You cannot transfer song files from iPod to computer using iTunes, except for songs purchased from the iTunes Store. However, there are third-party methods and utilities that can transfer from iPod to computer.  If you do a Google search on something like "ipod transfer," you should get some links.
    Once the song files are on your computer, you can add them to your iTunes library.

  • How can I get the ip addres of computers that log into my Applet?

    How can I get the ip addres of computers that log into my Applet?
    Thanks
    REuven

    Try using method getAddress of class InetAddress.

  • TCP/IP Printer installs - How do I get the proper driver settings?

    I saw an older thread relating to this but I thought I would start a new one to revisit this thought.  I want to deploy my printers as TCP/IP and not rely on a shared print server.  This is in case the print server goes down, the users
    will still be able to print.  How can I get my driver settings to propagate to the users?  We use HP printers with settings like Printer Status Notifications, what tray to use, pages per sheet, duplexing, etc.  We also use Zebra label printers
    with custom stock sizes and tear-off values.

    > 1) Two print servers.  The stand-by print server will be a VM.  It will
    > have the same printers as the live print server...via exporting them
    > from the live and importing them on the stand-by using the Print Manager
    > snap-in.  If the live print server goes down, I just change the IP of
    > the stand-by to match the live and bring it online.  Printing should
    > continue as normal.
    Don't change IP addresses. Implement a DNS alias ("PRNSRV" or whatever)
    and point that to the hostname of the current production print server.
    And exporting/importing can be automated throuhg PrintBRM.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • I updated firefox to 4.0 and then to 5.0 and it doesn't look like it is supposed to, I still have the navigation tool bar at the top of my page and the drop down boxes too (file, edit, view etc). Why is this an how can I get the proper new versions?

    When I updated firefox to 4.0 the only things that really changed were a couple of buttons and the position of the tabs, the blue navigation bar and the drop down menus for file etc didn't change at all.
    My computer also freezes when visiting certain websites with firefox, not Every time I visit but frequently. The websites are usually commonly visited websites (Gmail, stuff.co.nz) and don't do it when I am using internet explorer or another computer. This started when I downloaded the upgrade.
    I use a net-book with Windows XP.

    To get the new style UI you need to hide the menu bar. To do that in the View menu select Toolbars, then click on the "Menu Bar" entry.
    If you need access to the menus you can press either Alt or F10 to temporarily display them.

  • How can I get the output of graphical mapping as an input to java mapping?

    Hi Experts,
    I am using graphical mapping in my scenario to get an xml at the end, now after this i want to use java mapping and then do encryption on this input. I am using both the mappings in the same interface
    Here the thing is, the input to the java mapping should be the output of the first graphical mapping.
    How can I link the java mapping and graphical mapping so that Ill get the output of the graphical mapping as the input to the java mapping?
    Some pointers to similar kind of implementations is highly appreciated.
    Thanks in advance,
    Thomas
    Edited by: Thomas Varghese on Jan 22, 2009 11:35 AM

    hi,
    the input to the jave mapping will be exaclty the same as if you don't have
    any mapping before that
    the only different is that the input will be XML of the output of the message mapping
    have a look at my blog to see how to combine two mappings:
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    that's all
    Regards,
    Michal Krawczyk

  • How can i get the every rising edge's time value with usb 6212 counter continues acquisition

    i have a usb 6212,and now i can get every pluse 'period ,frequency。 
    i want to know how to get the every rising edge's time point value by DAQmx Counter.
    thx

    As you already know YouTube doesn't play in the background, that's why I wasted my time trying to give you an alternative.

  • I erased my HD, then reinstalled the OS and aps. Now how do I get the music on my ipod to load into my itunes library?

    I have erased my HD, then reinstalled my Windows XP Operating System and all the software. How do I now transfer all the music on my ipod classic back into my itunes library?

    Well it would have been better to backup your library before wiping your hard drive. Since the horse has bolted however, see Recovering your iTunes library from your iPod or iOS device.
    tt2

  • How do I get the recorded HD videos on my Touch5 into iMovie?

    Have a few HD videos on my new Touch5. IPhoto seems to be the default choice of getting the HD videos onto my Mac, but I would prefer to have the videos in iMovie. Any obvious answers?

    Thanks. After importing the videos into iPhoto, then the videos showed up in iMovie under "iPhoto videos" in the Event Library. From here you can then easily copy them into your iMovie Projects. That was very slick and easy but not so obvious to me. Anyway thanks for your prompt response and help.

  • I bought my g5 at a pawn shop. How can I get the proper disks for my system?

    All I get now is the apple icon when starting my computer why is that?

    All I get now is the apple icon when starting my computer why is that?
    Means the file system has become corrupted.  It could be because of a bad hd.  Hd's average life is five years.
    Getting a leopard disk is close enough. Has all g5 drivers.  you will miss bonus software that came with machine   ... could have been iLife & some Games, etc.   Not a biggie.
      Shutdown your machine.  Hold down the shift key.  Poweron.  Wait awhile Wait awhile while you harddrive
    is being checked.
        http://support.apple.com/kb/ht1455
    You need to get into single use mode.
    This page will tell you how to get into single user mode.
    http://support.apple.com/kb/HT1492
    Basically, you hold down the command-s key then  powering on your machine. The command key has a little apple symbol on the lower left. It is between the alt/option key and the space bar. On a PC keyboard, it will be the windows key, I think.  The boot up will take longer than normal.   The filesystem will be checked and repaired.
    # reboot  your mac
    shutdown -r now

  • How do I get the proper details for all of my songs?

    Well I've just moved all my songs into iTunes and I am having some "Detail" problems.
    As you can see my details look like this:
    http://i80.photobucket.com/albums/j170/DaBaySick650/2-1.png
    My problem is, I want it to look like this:
    http://i80.photobucket.com/albums/j170/DaBaySick650/1-13.jpg
    All nice and ordered. Oh yeah, I would like to know how to have an artwork because I wouldn't like to browse through my music on my iPhone looking at the blank artwork.
    I wouldn't like the artwork to look like this:
    http://i80.photobucket.com/albums/j170/DaBaySick650/2-3.png
    I would LOVE to see it like this on my iPhone:
    http://i80.photobucket.com/albums/j170/DaBaySick650/1-14.jpg
    So any help on how iTunes will automatically send me the artwork and fix my details?

    Click here and request assistance.
    (83930)

  • HT4946 How do I get the videos I TOOK on my iphone4 INTO my computer in a recognizeable format?

    I seem to be able to get my photos from my iPhone4s into my computer through iTunes but I can't get any of my videos that I took with the camera into my computer. I would appreciate any advice for helping me to do this. contact [email protected]
    Thanks

    Refer to this article:
    iOS: Importing personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/HT4083

  • How can I install the proper App Store app to complete my upgrade?

    I have Snow Leopard (10.6.8) installed on my iMac 27 (late 2010) but the app store app is not supported on this version. How can I get the proper app store app for SLP? My goal is to get back to Maverick.
    I was running Maverick just fine but ran out of disk space. I had Best Buy install a Seagate 3TB drive. I reinstalled OS X 10.6.4 from my Install Disk. Then I upgraded the "software upgrades" to get 10.6.8.  Somehow I upgraded the App Store app to a version that is not supported on my current version of 10.6.8.
    I appear to be stuck. Unable to go to App Store to down load Maverick.
    Also, with the new Seagate 3TB drive, the fan runs continuously. Any ideas how I can move forward?
    Message was edited by: sunbuck7

    sunbuck7 wrote:
    I have an iMAC 27 Mid-2010
    Regarding your fan issue I believe I am correct in assuming BBY did not install the correct HD. My suggestion is to first do several SMC resets which are designed to help with running fans, carefully read http://support.apple.com/kb/ht3964. for information on what a SMC reset addresses. You can find instructions for doing the SMC resets in https://discussions.apple.com/docs/DOC-3603. A SMC reset will ONLY help if the correct HD was installed though.
    If the reset does not fix the issue then return the machine to BBY, inquire if the drive they use has heat sensors integrated into the HD they installed and if not then get them to install the correct HD to address the issue.

  • HT4059 I've purchased a book, but there is no content inside the book. How can I get a proper version?

    I've purchased a book, but there is no content inside the book. How can I get a proper version?

    You should be able to delete the book via the Edit button at the top right of the bookshelf and then re-download via the Store button at the top left and then the Purchased tab. If it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book and use the 'Report a Problem' link.

  • How can i get the all values from the Property file to Hashtable?

    how can i get the all values from the Property file to Hashtable?
    ok,consider my property file name is pro.PROPERTIES
    and it contain
    8326=sun developer
    4306=sun java developer
    3943=java developer
    how can i get the all keys & values from the pro.PROPERTIES to hashtable
    plz help guys..............

    The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
    InputStream is = new FileInputStream("tivoli.properties");
    props.load(is);

Maybe you are looking for