XML containing Japanese data

Hello,
We have an application, which should work for both English and Japanese languages. We are using MVC pattern, where the data coming from the browser is stored in a bean and is saved into the database using a separate persistence manager (PM) class. When multiple records are retrieved from the database, we are using XML to return the results from PM class to the controller. This works fine if the records contain only the English data. When we are trying to return the records containing Japanese data, we get an exception 'Illegal XML character' while parsing the string. Can somebody tell, which encoding should be used in XML, to make it work? We are using some other parsers as against the ones available in WebLogic. We don't know how to override the WL XML settings. Could the problem be because of that?
Kindly answer ASAP, since the project is getting delayed.
Thanking in anticipation...
-Medha

Hi Medha,
OK, if you are writing to a file you have to specify the encoding as
well, e.g.
File f = new File(sFileName);
FileOutputStream fos = new FileOutputStream(f);
Writer w = new OutputStreamWriter(fos, "UTF8");
w.write(s);
w.close();
fos.close();
I was thinking that you are reading from a file. Is that correct? What
I'm doing is parsing XML Files containing simplified Chinese and Thai
characters. I store them in a UTF-8 encoded XML File. I read this as
described in my first posting. I'm using a new version of the xerces dom
parser, but I suppose that should not make a difference.
Could you post the stacktrace? And maybe a short example xml file in
UTF-8 encoding? I could try if my parser setup works with it.
Daniel
-----Original Message-----
From: Medha [mailto:[email protected]]
Posted At: Thursday, January 18, 2001 1:49 PM
Posted To: xml
Conversation: XML containing Japanese data
Subject: Re: XML containing Japanese data
Hi,
We tried JISAutoDetect, UTF-8, UTF-16, ISO-2022-JP and various JIS***
encodings in XML file.
We are using following code to parse the XML string
File filePointer=new File("/","test.xml");
FileWriter fileWriter=new FileWriter(filePointer);
fileWriter.write(xmlString);
fileWriter.close();
factory = DocumentBuilderFactory.newInstance();
builder = factory.newDocumentBuilder();
document = builder.parse(filePointer);
We are using SAX parser version 1.0 from SUN. We are using jaxp.jar
and parser.jar files. They are located in the classpath before weblogic
stuff.
Hope you can suggest some solution.
Thanks,
Medha
Daniel Hoppe <[email protected]> wrote:
Hi Medha,
some questions in order to help:
- which encoding are you currently using?
- Did you specify the encoding in your XML file (e.g. <?xml
version="1.0" encoding="UTF-8"?>)?
- Are you reading the file from which you are building the strings
correctly (specify the encoding as well?)
     e.g.:
     InputStream is = new FileInputStream(sFileName);
InputStreamReader isr = new InputStreamReader(is,"UTF8");
Reader in = new BufferedReader(isr);
- which parser are you using and where in the classpath is it located
(especially before or behind the weblogic stuff including servicepacks)
>
Regards,
Daniel

Similar Messages

  • XML contains CSV Data

    <Employees>
    <Employee>123,Active,John,Doe,[email protected],Org,Address</Employee>
    </Employees>
    The XML contains comma separated values. I would like to retrieve the data in the Employee not and map it to its respective schema. Can you give me an example of how I can achieve this?
    Thanks in Advance.

    You can do it in couple of ways:
    1) using
    Flat File Assembler  in receive pipeline 
         * Remove xml tags in by creating custom pipeline component during Decode Stage
         * create Flat file schema from CSC content
         * implement Flat File Disassembler component to disassemble your message to XML
    2) In biztalk map (either using functoids or xslt)
        * Since you are already getting this xml message, use map and split the string using string functoids 
         * Or, XSLT to split string. Refer
    this post
    3) In Orchestration
        * You can have this whole xml inside orchestration
              * Create a string variable using Orchestration View 
              * split use String.Split method to split string and assign values to respective nodes using message                 assignment shape 
    If you start with an approach, post here if you encounter any further issues?
    If this answers your question please mark it as Answer and if this post is helpful, please vote as helpful. Thanks !

  • Query Runs - but XML contains no data

    OK - I'm a real newbee so please excuse me if this is a dumb question.
    I imported a working query into BIP. The query runs in BIP without error but all that is output is an XML skeleton that contains the correct number of rows but no data. It looks like this:
    <ROWSET>
    <ROW>
    </ROW>
    <ROW>
    </ROW>
    <ROW>
    </ROW>
    <ROW>
    </ROW>
    </ROWSET>
    There is a message at the top that says "This XML file does not appear to have any style information associated with it. The document tree is shown below."
    As noted, the query works fine outside of BIP. Any idea why the data isn't being returned?
    Thanks for any help you can provide!

    There's the rub. It is in fact a rather intricate query that was not built in Query Builder. However, the query was executed using the same User ID both in BIP and in the external Query tool. The parameter values were the same as well. As noted, I think that the query returns data in both environments - it's just not making it into the XML file in BIP.
    If it helps at all, here is the Teradata SQL I am trying to run. Please note that I did not write the query - it was generated by the reporting tool from which we are attempting to migrate - so please don't shoot the messenger :)
    SELECT DT2.START_DT AS "START DATE"
    ,DT2.SUB_ACCT_ID AS "SUB ACCT ID"
    ,DT1.CALL_ID AS "CALL ID"
    ,DT1.CUST_SUPRT_PRDCT_ID AS "PRODUCT ID"
    ,DT2.USER_LAST_NAME AS "USER LAST NAME"
    ,DT2.USER_FIRST_NAME AS "USER FIRST NAME"
    ,DT1.CALL_REASN_DTL_NAME AS "CALL REASON DETAIL NAME"
    ,DT1.CALL_PRDCT_REASN_DTL_TEXT AS "CALL REASON DETAIL TEXT"
    ,DT1.CALL_REASN_NAME AS "CALL REASON NAME"
    ,DT1.PARENT_CALL_REASN_NAME AS "PARENT CALL REASON NAME"
    ,DT2.MIN_START_TIME AS "CALL START TIME"
    ,DT2.PRIM_MKT_CD AS "PRIMARY MKT CD"
    ,DT2.PRIM_MKT_DESCR AS "PRIMARY MKT DESCR"
    ,DT2.SUB_ACCT_NAME AS "SUB ACCT NAME"
    ,DT2.CUST_SUPRT_PRDCT_NAME AS "PRODUCT NAME"
    FROM (SELECT T1.CALL_ID,
    T4.CALL_REASN_DTL_NAME,
    T1.CALL_PRDCT_REASN_DTL_TEXT,
    T3.CALL_REASN_NAME,
    T2.CALL_REASN_NAME AS PARENT_CALL_REASN_NAME,
    T1.CUST_SUPRT_PRDCT_ID
    FROM BI_CSR.CSR_CALL_PRDCT_REASN_DTL T1
    LEFT OUTER JOIN BI_CSR.CS_CALL_REASN T2
    INNER JOIN BI_CSR.CS_CALL_REASN T3
    ON T2.CALL_REASN_NBR = T3.PARENT_CALL_REASN_NBR
    ON T1.CUST_SUPRT_PRDCT_ID = T3.CUST_SUPRT_PRDCT_ID
    AND T1.CALL_REASN_ID = T3.CALL_REASN_ID
    AND T1.CALL_REASN_NBR = T3.CALL_REASN_NBR
    INNER JOIN BI_CSR.CALL_REASN_DTL T4
    ON T1.CALL_REASN_DTL_ID = T4.CALL_REASN_DTL_ID
    WHERE (T1.CALL_ID IN
    (SELECT TC.CALL_ID
    FROM BI.SUB_ACCT_CURR TA,
    BI_CSR.CSR_CALL_PRDCT_USER TB,
    BI_CSR.CALL_DATA TC
    WHERE (TA.PRIM_MKT_CD = :PrimaryMkt
    AND TC.CLNDR_YR_MONTH = :YearMonth)
    AND TC.CALL_ID = TB.CALL_ID
    AND TB.SUB_ACCT_ID = TA.SUB_ACCT_ID
    GROUP BY TC.CALL_ID ))
    GROUP BY T1.CALL_ID,
    T4.CALL_REASN_DTL_NAME,
    T1.CALL_PRDCT_REASN_DTL_TEXT,
    T3.CALL_REASN_NAME,
    T2.CALL_REASN_NAME,
    T1.CUST_SUPRT_PRDCT_ID) DT1
    INNER JOIN (SELECT T8.CALL_ID
    ,T8.START_DT
    ,MIN (T8.START_TIME) AS MIN_START_TIME
    ,T4.PRIM_MKT_CD
    ,T1.PRIM_MKT_DESCR
    ,T4.SUB_ACCT_ID
    ,T4.SUB_ACCT_NAME
    ,T7.CUST_SUPRT_PRDCT_ID
    ,T2.CUST_SUPRT_PRDCT_NAME
    ,T5.USER_LAST_NAME
    ,T5.USER_FIRST_NAME
    FROM BI.PRIM_MKT_LKUP T1,
    BI_CSR.CUST_SUPRT_PRDCT T2,
    BI_CSR.CALL_DATA T3,
    BI.SUB_ACCT_CURR T4,
    BI.USER_SIGNON_DIM T5,
    BI_CSR.CSR_CALL_PRDCT_USER T6,
    BI_CSR.CSR_CALL_PRDCT T7,
    BI_CSR.CSR_CALL_CURR T8
    WHERE (T4.PRIM_MKT_CD = :PrimaryMkt
    AND T3.CALL_CNTR_CD = :CallCenter
    AND T3.CLNDR_YR_MONTH = :YearMonth)
    AND T2.CUST_SUPRT_PRDCT_ID = T7.CUST_SUPRT_PRDCT_ID
    AND T7.CSR_ID = T8.CSR_ID
    AND T7.CALL_ID = T8.CALL_ID
    AND T7.CALL_REC_NBR = T8.CALL_REC_NBR
    AND T8.CALL_ID = T3.CALL_ID
    AND T7.CUST_SUPRT_PRDCT_ID = T6.CUST_SUPRT_PRDCT_ID
    AND T7.CSR_ID = T6.CSR_ID
    AND T7.CALL_ID = T6.CALL_ID
    AND T7.CALL_REC_NBR = T6.CALL_REC_NBR
    AND T7.PRDCT_CLASS_CD = T6.PRDCT_CLASS_CD
    AND T7.CALL_CUST_SUPRT_PRDCT_ID = T6.CALL_CUST_SUPRT_PRDCT_ID
    AND T6.USER_SIGNON_ID = T5.USER_SIGNON_ID
    AND T6.SUB_ACCT_ID = T5.SUB_ACCT_ID
    AND T5.SUB_ACCT_ID = T4.SUB_ACCT_ID
    AND T4.PRIM_MKT_CD = T1.PRIM_MKT_CD
    GROUP BY T8.CALL_ID,
    T8.START_DT,
    T4.PRIM_MKT_CD,
    T1.PRIM_MKT_DESCR,
    T4.SUB_ACCT_ID,
    T4.SUB_ACCT_NAME,
    T7.CUST_SUPRT_PRDCT_ID,
    T2.CUST_SUPRT_PRDCT_NAME,
    T5.USER_LAST_NAME,
    T5.USER_FIRST_NAME) DT2
    ON (DT1.CALL_ID = DT2.CALL_ID
    AND DT1.CUST_SUPRT_PRDCT_ID = DT2.CUST_SUPRT_PRDCT_ID)
    ORDER BY 1,2,3,4,5,6

  • Retrive Japanese data and store into a file

    Hi,
    I have a table which contains japanese data. My database charset is AL32UTF8. I am able to insert japanse data into oracle table also I am able to view inserted data into oracle table using sql*plus.
    I wrote a java program to write a file with table stored data. To fetch that data I am using sql query. When I use ojdbc14.jar of version 9.0.2.0.0. Then I am able to write japanse data file but when I use ojdbc14.jar of version 10.2.0.3.0. Then I found junked data into data file.
    Please help me out to solve this problem.

    The BIP Bursting APIs allow you to hook in code, in which you could achieve what you mention - but would require programming it!
    Regards,
    Gareth

  • Problem in displaying dynamic japanese data in JSP

    Hi all,
    I am trying to display japanese data (address) fetched from RDBMS database but only ???????? getting displayed. First the data is fetched from database then populated in xml. From xml databean is created .
    Steps taken
    I have put chartset =shift-jis in jsp response header .
    I made sure the encoding for XML file is UTF-8 for parsing. I am using documentbuilder object for parsing for xml.
    I am not sure what needs to be done to display japnese text properly.
    I appreciate if i get solution as i am struck with this for long time
    Regards,
    prasad

    Your JSP pages need to contain a JSP directive that specifices the encoding for the pages (one that supports Japanese).
    I use:
    <%@ page contentType="text/html;charset=UTF-8" %>
    You could also use:
    <%@ page contentType="text/html;charset=SHIFT-JIS" %>
    When you view with your browser also remember to set the page encdoing and ensure your OS has the proper fonts installed.

  • BI Publisher Word Template The report does not contain any data fields.

    I have OBIEE BI Publisher report (10.3.4) working fine using BIP but using MS Word 2003 I want to create new template and want to add charts etc.
    Step 1. In MS Word I successfully login Oracle BI Publisher as Administrator
    2. Oracle BI Publisher -> Open (I open the report)
    3. Go to Insert -> Table Wizard
    I get this error:
    The report does not contain any data fields. Please make sure that the reports generates data with the default settings or provide a valid XML file.
    Please help

    Hi
    How do I load XML data? Also why XML data load is required? Do I have to export XML data from BIP View screen and load from the same file from the word?
    Please clarify
    Thanks

  • Japanese Data Set and Get Problem with SQL

    Hi,
    I am not able to retrieve or set data contain Japanese characters.
    Formerly our set up was running just fine. But on doing installation on a new machine, things have gone all haywire.
    I installed Win NT 4.0 Japnese version and SQL 7.0 and later Win 2000 Server Japanese version with same SQL 7.0, but on both get and set I get SQL Exceptions:
    Query 1:
    SELECT DISTINCT MAKER_CD FROM T_MAKER WHERE MAKER_NAME = '�a�l�v�A���s�i' Exception:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark before the character string '�a�l�v�A��'.
    Query 2:
    Insert into Car (intCarID, nvchCustomerID, nvchCarMaker, nvchCarModel,nvchCarDescription, nvchCarCode, nvchCarColor, tintRegistrationCalendar,tintRegistrationMonth, intRegistrationYear,nvchAnnualMileage, nvchPurpose, intNoOfKms,intAirBag, btEcologicalCar, btAntilockBreakSystem,btAntiskid, btSafetyBody, btAntitheft, btFourWheelDrive,btCarModification, nvchLicensePlateArea, intLicensePlateType,nvchLicensePlateHiragana, tintLicensePlateNumber,nvchCarManufacturingNumber, nvchCarOwner, btCurrentlyInsured)Values( 1, 'NI200205040001','','', '', 'HA11S', '���I����������',2,1, 11 ,'5000', '�����E���W���[',0,2,0,0,0,0,0,0,0,'',0,'null', '0' ,'', '�_�������{�l' , 0)
    Exception:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'null'.
    I do not wish to Prepared Statements. I will need to update all my JDBC calls this way.
    Would be grateful if any solutions to this problem could be provided.
    Tahanks and Regards

    If you are using the JDBC-ODBC bridge, then add the 'charset' property (with the name of the japanese charset as value, or whichever you are using) to the Properties instance you pass on to getConnection().
    Alin.

  • Inbound CSV file containing  the date in the name

    Dear all,
    I have a very small problem on the import file process.
    I have configure a new SLD with the following pattern
    pluton\edi\B1I_CCO\In\QC_ROUT_*.TXT (this is a DSV file).
    I have defined a bizstep reading these files but the problem is that the file name contains the date.
    I have read in the documentation that a function exists in B1i (page 14 of the Ref2).
    So I have indicated as :
    - Identification Method: File Name
    - Identification Parameter : substring(filename,0,7)
    - Identifier : QC_ROUT
    But it does not work.
    Do you notice something wrong in it?
    thank you for your help.

    Hi Damien,
    Please find more explanation of using the "identification parameter" for file inbound in following segment:
    Identification Method = u201C File Name u201D
    The Scenario Step is subscribed to the incoming file in case the name of the file (without extension) is equal the string in the field Identifier. You can use the field Identification Parameter to define a substring. In this field you can define the position (e.g. 2) which triggers B1if to compare the filename from this position only or even position and length separated by comma (e.g. 2,3) which triggers B1if to compare this particular substring only. Sample: The file u201C test.xml u201D will trigger the Scenario Step in the following cases:
    Identifier = u201C test u201D
    Identifier = u201C est u201D and Identification Parameter = u201C 2 u201D
    Identifier = u201C es u201D and Identification Parameter = u201C 2,2 u201D
    please enter the following:
    - Identification Method: File Name
    - Identification Parameter : 1,7
    - Identifier : QC_ROUT
    De- and reactivate your scenario and it will be working as expected.
    Best regards
    Bastian

  • DataProcessor generating XML containing special ampersand, equals sign etc

    Hi,
    Using 10.1.3.3.3
    I am using the BIP API's to generate reports for an application, but have a problem where the DataProcessor is generating XML containing ampersands and equal signs '&', '=' from the database.
    The characters are causing the FOProcessor to throw and exception when reading the generated XML:
    oracle.xml.parser.v2.XMLParseException: Expected name instead of .
    08/08/06 12:12:22 at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
    If I remove the '&' and '=' the PDF is generated successfully.
    It is not pratical to convert these characters as part of the queries (40+ tables times x columns).
    Is there anything I can put in the data template or config to get it to properly escape these characters when generating in the XML data?
    Apologies if this has been answered in another thread.
    Brenden

    You must replace '&' by &
    '=' work fine.
    look here for additional character encoding
    http://llizard.etherwork.net/cwc/charactmap.html
    Skobelev Max

  • IWS 6.0 SP1, document contained no data

    Hello all,
    I'm working on iWS6.0 SP1 on Solaris 8 and when I start the administration
    console (Netscape Communicator, port 7777) I see this Netscape error: "the
    document contained no data. Try again later or contact the server
    administrator", and the adminitratotion server restarts. Log errors shows
    this output:
    [13/Dec/2001:09:11:05] warning ( 680): for host 194.158.64.17 trying to GET
    /https-admserv/icons/dgLeftTab.gif, send-file reports: error sending
    /usr/iplanet/ws6.0/bin/https/admin/icons/dgLeftTab.gif (Operation not
    applicable) status=1:5
    [13/Dec/2001:09:11:05] warning ( 680): for host 194.158.64.17 trying to GET
    /https-admserv/icons/spacer.gif, send-file reports: error sending
    /usr/iplanet/ws6.0/bin/https/admin/icons/spacer.gif (Operation not
    applicable) status=1:5
    [13/Dec/2001:09:11:10] failure ( 655): Child process admin thread is
    shutting down
    [13/Dec/2001:09:11:10] info ( 684): Installing a new configuration
    [13/Dec/2001:09:11:10] info ( 684): [LS ls1] http://www.govern.ad, port 7777
    ready to accept requests
    Thanks in advance

    Greg Redman wrote:
    I upgraded from iWS 4.1 SP7 to 6.0 back in August. After some
    migration problems with config files were resolved, everything was up
    and running. No changes were made to the ACL or server.xml files to
    get everything running. Because of the migration problems, however,
    we went back to iWS 4.1 and waited for the SP1 release.
    I just went through the SP1 migration and everything is up and running
    except the none of my images are showing up on the HTML pages being
    served. For every "GET" of an image file I'm seeing an error in the
    error log the says ...(no access rights). Has something changed in
    SP1 that requires ACL type changes ?Can you show us an example of the error? What about the request/response
    (what's being sent back to the browser)?
    Joe McCabe Some men are alive today simply because it is against the
    Moz' Pit law to kill them. -- Ed Howe

  • Japanese Data Corruption in SOAP Response

    Hello,
    I'm in an environment where I need to pass Japanese data through a SOAP service using an Element. When I return
    the Element in response tor my SOAP request I'm receiving corrupted data in the XML. The XML data of the Element on
    the server side looks perfect. Does anyone have any suggestions what might be wrong?
    I'm using Oracle SOAP from iAS v1.0.2.2.
    My client code looks like this:
    Call call = new Call();
    call.setTargetObjectURI( serviceId );
    call.setMethodName( "select" );
    call.setEncodingStyleURI( Constants.NS_URI_LITERAL_XML );
    Vector params = new Vector();
    params.addElement( new Parameter( "max",
    int.class,
    new Integer( 50 ),
    Constants.NS_URI_SOAP_ENC ) );
    Any help would be greatly appreciated! Thanks!
    -ann

    Hello,
    Still no luck, but I did try to send the XML as a string. The results were greatly improved, but still not right. This
    client code looks like this:
    Locale.setDefault(new Locale("ja","JP"));
    Call call = new Call();
    call.setTargetObjectURI( serviceId );
    call.setMethodName( "select" );
    call.setEncodingStyleURI( Constants.NS_URI_SOAP_ENC );
    Vector params = new Vector();
    // Specify to return a maximum of 50 records
    params.addElement( new Parameter( "max",
    int.class,
    new Integer( 50 ),
    null ) );
    The resulting Japanese data has the correct characters, but includes extraneous ones as well.
    Can anyone help me with this?
    Thanks!
    -ann

  • How to create a table which contains relational data and Document data

    hai all
    i need to create a table which contains relational data(i mean coulumns whose data types are type NUMBER,VARCHAR) and documents(like xml file/html file/image)using iFS.
    when i store the document data(xml data/html data) in the iFS ,it will be stored as Document Object.so how do i relate this document object belongs to a particular row in a table.
    do guide me
    thanks

    Please see reply at http://technet.oracle.com:89/ubb/Forum36/HTML/000778.html

  • NLS_LANG in case of Japanese data

    Hi,
    My DB NLS Charset is AMERICAN_AMERICA.AL32UTF8 and NLS_LENGTH_SEMANTICS is BYTE. I am working with Japanese Kanji, Kana Data. I am storing japanese data into VARCHAR2. I am using SQL*LOADER to load japanese data into Oracle Tables.
    When I upload data using SQLLDR with NLS_LANG=AMERICAN_AMERICA.AL32UTF8 then I am facing Data Too Large Exception. But When I upload data with NLS_LANG=AMERICAN_AMERICA.JA16SJIS then my data is uploaded successfully.
    Please tell me AMERICAN_AMERICA.JA16SJIS is perfect charset to upload data into oracle tables?
    If not then please tell me how to upload japanese data using AMERICAN_AMERICA.AL32UTF8 charset.
    My DB Table is given below:
    CREATE TABLE TEST_KANJI
    DATA_TEST1 VARCHAR2(5 CHAR),
    DATA_TEST2 VARCHAR2(5 CHAR)
    );

    Thanks orafad.
    Actually.. Our database is AL32UTF8 compatible. We are using SQL LOADER to upload japanese data into database. Our DB NLS_LENGTH_SEMANTICS is BYTE TYPE.
    Our NLS_LANG contains AMERICAN_AMERICA.AL32UTF8. Now we perform following operations:
    QL> CREATE TABLE TEST_SJIS_CHAR
    2 (
    3 data_1 VARCHAR2(3 CHAR),
    4 data_2 VARCHAR2(3 CHAR)
    5 );
    Table created.
    SQL> CREATE TABLE TEST_SJIS_BYTE
    2 (
    3 data_1 VARCHAR2(3 BYTE),
    4 data_2 VARCHAR2(3 BYTE)
    5 );
    Table created.
    SQL> INSERT INTO test_sjis_char VALUES('私金魚','私金魚');
    INSERT INTO test_sjis_char VALUES('私金魚','私金魚')
    ERROR at line 1:
    ORA-12899: value too large for column "ODIDEV"."TEST_SJIS_CHAR"."DATA_1"
    (actual: 4, maximum: 3)
    SQL> INSERT INTO test_sjis_byte VALUES('私金魚','私金魚');
    INSERT INTO test_sjis_byte VALUES('私金魚','私金魚')
    ERROR at line 1:
    ORA-12899: value too large for column "ODIDEV"."TEST_SJIS_BYTE"."DATA_1"
    (actual: 6, maximum: 3)
    SQL> INSERT INTO test_sjis_byte VALUES('金魚魚','魚金魚');
    INSERT INTO test_sjis_byte VALUES('金魚魚','魚金魚')
    ERROR at line 1:
    ORA-12899: value too large for column "ODIDEV"."TEST_SJIS_BYTE"."DATA_1"
    (actual: 6, maximum: 3)
    SQL> INSERT INTO test_sjis_char VALUES('金魚魚','魚金魚');
    INSERT INTO test_sjis_char VALUES('金魚魚','魚金魚')
    ERROR at line 1:
    ORA-12899: value too large for column "ODIDEV"."TEST_SJIS_CHAR"."DATA_1"
    (actual: 4, maximum: 3)
    Now we change our client NLS_LANG=AMERICAN_AMERICA.JA16SJIS. Now we perform following operations:
    SQL> CREATE TABLE TEST_SJIS_CHAR
    2 (
    3 data_1 VARCHAR2(3 CHAR),
    4 data_2 VARCHAR2(3 CHAR)
    5 );
    Table created.
    SQL> CREATE TABLE TEST_SJIS_BYTE
    2 (
    3 data_1 VARCHAR2(3 BYTE),
    4 data_2 VARCHAR2(3 BYTE)
    5 );
    Table created.
    SQL> INSERT INTO test_sjis_char VALUES('私金魚','私金魚');
    1 row created.
    SQL> INSERT INTO test_sjis_byte VALUES('私金魚','私金魚');
    INSERT INTO test_sjis_byte VALUES('私金魚','私金魚')
    ERROR at line 1:
    ORA-12899: value too large for column "ODIDEV"."TEST_SJIS_BYTE"."DATA_1"
    (actual: 9, maximum: 3)
    SQL> INSERT INTO test_sjis_byte VALUES('金魚魚','魚金魚');
    INSERT INTO test_sjis_byte VALUES('金魚魚','魚金魚')
    ERROR at line 1:
    ORA-12899: value too large for column "ODIDEV"."TEST_SJIS_BYTE"."DATA_1"
    (actual: 9, maximum: 3)
    SQL> INSERT INTO test_sjis_char VALUES('金魚魚','魚金魚');
    1 row created.
    SQL> SELECT length(data_1), length(data_2) FROM test_sjis_char;
    LENGTH(DATA_1) LENGTH(DATA_2)
    3 3
    3 3
    SQL> SELECT length(data_1), length(data_2) FROM test_sjis_byte;
    no rows selected
    SQL>
    SQL> SELECT lengthb(data_1), lengthb(data_2) FROM test_sjis_char;
    LENGTHB(DATA_1) LENGTHB(DATA_2)
    9 9
    9 9
    SQL> SELECT lengthb(data_1), lengthb(data_2) FROM test_sjis_byte;
    no rows selected
    SQL> SELECT data_1 || data_2 from test_sjis_char;
    DATA_1||DATA
    私金魚私金魚
    金魚魚魚金魚
    SQL> SELECT data_1 || data_2 from test_sjis_byte;
    no rows selected.
    Actually We want to take a final decission on charset. But we need strong reason to finalize it. Please help me out to solve this issue.

  • Problem in displaying dynamiic japanese data

    I am trying to display japanese data (address) fetched from RDBMS database but only ???????? getting displayed.
    First the data is fetched from database then populated in xml. XML is in UTF-8 encoding,From xml ,databean is created .
    Steps taken
    I have put chartset =shift-jis in jsp response header .
    I made sure the encoding for XML file is UTF-8.
    I am not sure what needs to be done to display japnese text properly.
    cheers
    svp

    Tien ,
    I tired this but it did not work.
    I was curious knowing how japanese static text is put into jsp code. I want to know whether i followed right way because if the change te encoding to utf-8 ,my jsp displays question marks even for static content.

  • XSL gives a XML file without data

    I am using XSL to create a new XML file from a given XML file. The resulting XML file created contains no data!! Pls. tell me what is wrong or if I have omitted something.

    I am using XSL to create a new XML file from a given XML file. The resulting XML file created contains no data!! Pls. tell me what is wrong or if I have omitted something.

Maybe you are looking for