Heartache making web app compatible with Japanese

I maintain a Java Web application which interfaces with an Oracle 9 database via JDBC.<br>
<br>
The database settings are:<br>
NLS_CHARACTERSET WE8ISO8859P1<br>
NLS_NCHAR_CHARACTERSET AL16UTF16<br>
<br>
I have one column in which users now should be able to enter all types of characters, including Western and Japanese text. The column is currently set to CLOB, and I never enter more than 4000 characters.<br>
<br>
I don't want to switch the entire database to UTF-8, because that means shutting down, backing up, restarting. I don't have sufficient Oracle knowledge to do that without risking significant downtime.<br>
<br>
What do I have to do in order to enter Japanese and Western characters into that field?<br>
<br>
I've done the following so far, but without success:<br>
1. The JSP page includes the encoding information - <%@page contentType="text/html; charset=UTF-8"%><br>
2. I changed the field in Oracle to NClob<br>
3. I use the following code to insert my test Japanese characters (i.e. the TEXT2 field is the NClob field):<br>
dbconn = DriverManager.getConnection("jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=thehost.com) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=servicename)))","scott", "tiger");<br>
     pstmt = dbconn.prepareStatement("INSERT INTO TEST_MATTHIAS (ID, TEXT1,TEXT2,TEXT3,TEXT4) VALUES(?,?,?,?,?)");<br>
               for (int i=0; i<1; i++) {<br>
                    pstmt.setString(1, request.getParameter("id")+"");<br>
                    pstmt.setString(2, request.getParameter("text1")+"");<br>
                    pstmt.setString(3, request.getParameter("text2")+"");<br>
                    pstmt.setString(4, request.getParameter("text3")+"");<br>
                    pstmt.setString(5, request.getParameter("text4")+"");<br>
                    pstmt.executeUpdate();
               }<br>
4. I query the table with the following code:<br>
pstmt = dbconn.prepareStatement("SELECT ID, TEXT1, TEXT2, TEXT3, TEXT4 FROM TEST_MATTHIAS WHERE ID='1'");<br>
               results = pstmt.executeQuery();<br>
               while(results.next()){<br>
                    result = "Text1: "+results.getString("TEXT1")+"<br>Text2: "+results.getString("TEXT2")+"<br>Text3: "+results.getString("TEXT3")+"<br>Text4: "+results.getString("TEXT4");<br>
               }<br>
5. BUT, even with these changes, the text is not inserted correctly, and is not selected correctly. I use Aqua Data Studio as my main application to query the database. But the code above, of course, is in my JSP.<br>
6. My test text that I try to insert into the form field on the JSP: "Yahoo!&#12503;&#12524;&#12511;&#12450;&#12512;"<br>
7. The text that comes out of my SQL Select statement: "Yahoo!×ìߢà"<br>
<br>
Can someone help or give me tips on what I am missing?<br>
<br>
<br>
Sincerely,<br>
<br>
jetcat33
Message was edited by:
user510970

Try this:
request.setCharacterEncoding("utf-8"); // <-- here
pstmt = dbconn.prepareStatement("INSERT INTO TEST_MATTHIAS (ID, TEXT1,TEXT2,TEXT3,TEXT4) VALUES(?,?,?,?,?)");
pstmt.setFormOfUse(3, OraclePreparedStatement.FORM_NCHAR); // <-- here
pstmt.setString(1, request.getParameter("id")+"");
pstmt.setString(2, request.getParameter("text1")+"");
pstmt.setString(3, request.getParameter("text2")+"");
pstmt.setString(4, request.getParameter("text3")+"");
pstmt.setString(5, request.getParameter("text4")+"");
pstmt.executeUpdate();

Similar Messages

  • Office Web Apps Server 2013 - Word Web App - Problem with Tab space

    Hello We have Office Web Apps Server 2013 running with SharePoint 2013.  Users Editing a Word document with Office Web Apps, can't use "Tabs", any Word document with Tabs; the tabs are replaced with a single space.
    Has anyone noticed this?  Is this a bug?
    -thanks
    thomas
    -Tom

    Yes, currently the Word Web App does not support
    Tab Keyboard shortcut for editing document content .
    For more information, you can have a look at
    the article:
    http://office.microsoft.com/en-us/office-online-help/keyboard-shortcuts-in-word-online-HA010378332.aspx?CTT=5&origin=HA010380212
    http://social.technet.microsoft.com/Forums/en-US/3f5978d3-67a1-4c8c-981f-32493d72610b/office-web-apps-server-2013-word-web-app-problem-with-tab-space?forum=sharepointgeneral

  • Is HP Smart Web Printing compatible with Windows 7 Ultimate 32 bit and Internet Explorer 8 and 9?

    Is HP Smart Web Printing compatible with Windows 7 Ultimate 32 bit and Internet Explorer 8 and 9?

    HP Smart Web Printing has been replaced with HP Smart Printing.  It does support Windows 7 and IE 6 to IE9.  See this page for information.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How to download versions of apps compatible with OSX 10.7 not the ones updated for 10.9

    how to download versions of apps compatible with OSX 10.7 not the ones updated for 10.9?
    I'm trying to download iLife and iWork apps for my MacBook. For example: The GarageBand app will not download because it says it is compatible with 10.9. I have 10.7 and cannot update to 10.9 because I'm on a 13in. Late 2007 MacBook. Any suggestions?

    Click here and follow the instructions. If they’re not applicable, you can’t download them and need to install them from a DVD.
    (108988)

  • Do you know of any kids games apps compatible with 2nd generation iPod?

    Do you know of any kids games apps compatible with 2nd generation iPod? wanted to put some kids games on but they all say they are not supported by iOS 4.2.1. which is the latest ios it can be updated to. I get the message This app requires openGL ES 2.0 graphics capability. Can you tell me if there are any games I could download for him please?
    If there aren't can you tell me if an ipod touch 3rd generation would be able to get alot of the current games like the lego ones and angry birds or which generation I would have to go to.
    Many Thanks

    - These sites allow you to filter searchs for those apps compatible with 4.2.1
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    - However, some apps currently in th app require a higer iOS version. But, as I posint out in my previous reply, Apple allows yo to downlod the last compatilbe version
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.
    I know of no list/seach method to find those apps

  • Office Web Apps 2013 with SharePoint 2013 Server

    Hi All,
    I have installed a separate server for Office Web Apps 2013 on Windows Server 2012 VM. I have followed TechNet's article on
    Deploying Office Web Apps Server & exactly followed steps.
    On SharePoint Server 2013 (Windows Server 2012), I followed TechNet’s article on
    Configure Office Web Apps for SharePoint. The Office Web Apps on SharePoint 2013 environment works for
    Excel document that shows “View in Browser” but
    no Preview.
    However, PowerPoint and Word documents doesn’t show “View in Browser”. I thought Internet Explorer 10 has some issue with Office Web Apps and checked on Chrome and results were same.
    On SharePoint Server 2013 environment, I have configured 3 services applications, MMS, UPS and Excel Service. 
    1.) Do I need any other service applications to be enabled for OWA 2013?      
    I read number of blogs,
    Installing Office Web Apps Server for SharePoint 2013 (Steve Mann),
    Install Office Web Apps 2013 with SharePoint 2013 (Max Melcher) and Spence Harbar
    (Enabling Office Web Apps Preview editing with SharePoint 2013). and all these blogs give more or less same steps that I have followed.  
    Strange thing is that Excel documents on my SharePoint 2013 sites are working but neither word or PowerPoint documents are not showing option for “View in Browser”. 
    I am using HTTP and not HTTPS.
    2. Can someone please advice how could I solve the Office Web Apps 2010 on Word and PPT?
    3. How to can enable preview for Excel, Word and PPT documents.
    Thanks you.
    Regards,
    Aroh
    Aroh Shukla

    Hi Inderjeet and Olafur,
    Thanks for your reply.
    @Inderjeet: That site collection feature on SP2010 works on our production environment but on SP2013 site collection there is no OWA feature. Microsoft recommends to have a separate OWA2013 server and what I create
    a separate VM for OWA2013 server.
    @Olafur: Your suggestion looks spot on. The OWA server does show the discovery:
    Our SP2013 development server has limited RAM (4GB) and it think is causing the issue.
    Let me check if increasing RAM solves the issue.
    Thanks again for your suggestions. (Interjeet and Olafur).
    --Aroh
    Aroh Shukla

  • Need apps compatible with ios 4.2.1

    need apps compatible with ios 4.2.1

    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    Starting when iOS 7 was released, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • Is CS5 Web Premium compatible with Windows 7 64 bit?

    I just placed an order for CS5 Web Premium. I just assumed that if a software states compatible with windows, that is sufficient. I bought a license for Quikbooks books Accounting Software and just read in the very fine print not compatible with 64 bit OS! I am worried if CS5 is also not compatible. Please some one reply before I decide to pay in full for the product in two days time!
    Is CS5 Web Premium compatible with Windows 7 64 bit?
    Thank you very much!

    Hello Bob,
    I tried to install quickbooks 2009/10 accounting on my pc and an error message 1603 appear something to do with microsoft net. framework. I am awaiting reply from the quickbooks support team.
    To my horror checking forums on this issue, I am not the only one with complaints about Quickbooks 2009/10 incompatibility with Win 7 64 bit and apparently poor customer support. I sincerely hope this is not true. I am worried my first investment as a small business owner is already a waste of cash. : (

  • Cs3 and cs4 web standard compatible with vista home basic?

    Are Adobe CS3 and CS4 Web Standard compatible with Vista Home Basic 32bit?
    I only see Windows Vista Home Premium / Vista Business / Vista Enterprise / Vista Ultimate / XP listed as compatible.
    Many thanks.

    Vista didn't exist when CS3 was released and as such, there is no official statement regard compatibility of CS3 with Vista Home Basic.
    For CS4, we are very explicit. CS4 is not at all supported for Vista Home Basic (there are a number of networking and service support components that Microsoft leaves out of their Home Basic versions).
              - Dov

  • A video chat app. compatible with windows?

    Does anyone know of a video chat app compatible with windows?

    Trillian
    The PC application "Trillian" can be used on the PC for audio & video chat with iChat AV.
    iFelix

  • Are there still apps compatible with iPod 4th generation?

    I recebtly purchased my daughter a 4th Generation iPod touch but have not opened it yet. I was told that there are no longer many apps compatible with this iPod. Does anyone know if this is true?
    Thanks!

    Hey mende,
    Wouldn't you say that, at this point in time, all of the applications are compatible?
    Cheers,
    GB

  • Using Office Web Apps Server with SharePoint Foundation 2013

    I want to know whether I can configure Office Web Apps server to edit Excel documents on a SharePoint Foundation 2013 site.
    I came across a TechNet article that states that "When used together with SharePoint Server 2013, Office Web Apps Server provides updated versions of Word Web App, Excel Web App, PowerPoint Web App, and OneNote Web App".
    However, later in the same article, it states "If your organization licenses Office 2013 through a Volume Licensing program, you can enable Office Web Apps editing for SharePoint 2013 on-premises" (without mentioning Foundation or Server).

    Hi Lemesnil,
    The Office Web App server should support the Edit licenses for SharePoin Foundation 2013, Office Web App is free to
    download, you can also try installing and configuring in a test environment, see more from the below article applied to SharePoint Foundation 2013.
    http://support.microsoft.com/kb/2886404/en-us
    http://blogs.technet.com/b/speschka/archive/2012/12/31/enabling-licensing-and-editing-for-office-web-apps-in-sharepoint-2013.aspx
    Anohter useful article aobut how to license Office Web App server, you can take a look.
    http://blogs.technet.com/b/volume-licensing/archive/2013/05/22/how-to-license-office-web-apps-server.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • How can I find an erlier version of the Netflix iPad app compatible with 1st generation iPads?

    I have 2 first generation iPads.  One has an early version of the Netflix app that is compatible with the ios, the other does not have the app.  When I try to download the app to the second iPad, I get nowhere becuse the only thing offered requires an ios that is beyond that supported by my iPad.  I can't find a work around and I am not offered the option to download early versions of the app. 

    I believe the prompt will only appear if you already have the old version installed and an update is presented, though I could be mistaken. Have you looked in the Purchases area of the App Store app when signed in using the account under which you downloaded the old version to see if the old version still appears there?
    If not, do you have the old version in iTunes on your computer, or if not is it still on that other iPad. If so, you should be able to get it into iTunes and from there sync it to the second iPad.
    Regards.

  • How do I find apps compatible with iphone 3G?

    I would like to use an older iphone 3G as an iTouch ipod for my grandchild, now that I have a newer phone.  I can load music fine, but I'm trying to find some suitable games (11-14 years) that I can add as well.  All the apps that I've tried in the app store aren't compatible with the old phone.  There doesn't seem to be a way to search for games using the phone model or iOS as a search function.  Any help would be appreciated.

    As you probably know, your iPhone 3G came out more than four years ago.  App developers have moved on beyond what can be supported by such an old phone.
    I suggest you consider some new hardware.  If you don't need the telephone capability of a new iPhone, consider an iPod or iPad.

  • Web Camera compatible with Mac mini

    Could someone recommend a web camera that is compatible with the Mac mini. I bought a Dynex DX-DTCAM that said it works with Mac's but it doesn't. Any help is much appreciated.

    Welcome to Apple Discussions!
    You might find the (brief) thread at http://discussions.apple.com/thread.jspa?threadID=1144969&tstart=0 of some interest in terms of webcam compatibility as a whole.
    Not sure about the Dynex you have - it is certainly claimed to be MacOS X compatible, though not exactly which version(s) of MacOS X it works with. Assuming you've installed the drivers with the cam from the CD it came with, you might look at t http://www.dynexproducts.com/pc-459-10-dynex-desktop-web-camera.aspx to see if the Windows and Mac driver download on that page offers a later driver for Macs. The 'readme' file is dated June 2007 and it claims it's for MacOS 10.3 and later.

Maybe you are looking for

  • I cannot access any songs on my iPod classic. I had around 20,000 songs on it and it now says I have 12,00o but can't access them. Any idea why this has happened?

    I cannot plug it into iTunes and reload as my MacBook crashed a few days ago and I had to get a new hard drive. Recovery software is unable to retrieve anything from the hard drive. All the songs were from CDs so not saved in iTunes. The iPod was las

  • How? loading seperate music player .swf into main site prob.

    hey all! Ok something that I still don't really understand, have tried to modify afew flas but with no luck. Anyhow to the point. I have a main fla file with all my content in it and a litlte music player that plays 3 to 4 external swfs with music &a

  • B2B requirement

    Hi, I have the following requirement in a B2B process. Purchase Orders are coming from 3rd party system to ECC through IDoc (type ORDERS05) and creating Sales Order. Whenever an Orderchage is coming, I have to check whether some fields (which are mai

  • Frequent "sign in" to Creative Cloud

    I joined the "photographers" programme at the beginning of December and am now totally fed up with "apparently" being signed out of CC and having to sign in again before I can use PS CC on a WIn7 64bit PC. Once I do this, I get the message that the c

  • Steps to create quotes from scratch

    Hi guys We have installed ECC and just for testing purpose we want to enter some basic data starting from creating couple of customers, department, quote and order. Is there a simple way (steps) to follow. The reason for asking this question is that