Urgent.JDBC & Encoding & dbSwings

Hi All.
I wrote an application that work with MS-Access and JdbcOdbcBridge.
My developement tool is JBuilder7 and the OS is WindowsXP.
My problem :
I insert some records in a table(Customers Table) with UTF8 format.
Now,in a frame , I have a JTable swing that shows the result of a query based on the customers table,but the result is some ?????? insteadof real character(Arabic Characters) in fields.
Have u any idea or solution about my problem?
Best Regards.

Help me please.

Similar Messages

  • Urgent : Change Encoding type?

    Hi.
    It's urgent
    I wana change encoding type character with capital character.
    For reference, receiver file adapter write header like following... but must be changed large character...
    (not iso, must be changed "ISO")
           <?xml version="1.0" encoding="iso-8859-1" ?>
       ==> <?xml version="1.0" encoding="ISO-8859-1" ?>
    Regards.
    Message was edited by: ChangSeop Song

    hi,
    I suppose you already have a mapping?
    so you only want to change the result
    to have encoding="ISO-8859-1 right?
    you can use XSLT mapping to map
    your target xml document to xml document with ISO
    this is what you have to use: 
    <xsl:output method="xml" encoding="ISO-8859-1"/>
    have a look at my weblog in order to see how you can add sxlt mapping to your adapter (in the modules tab)
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    obviously you can also use java or abap mapping
    but XSLT will be the fastest to develop
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • JDBC Encoding issue

    Hi All,
               I am doing Idoc to Jdbc scenario. Here from sender idoc for one of the field i am getting french character in the payload. Find the below details.
    From Payload we are getting "Crépy en Valois". But while storing in the database it is storing like "Cripy en Valois ".
    Can anyone give suggestion on how to achieve this or else is there any way to replace the special character with "?"
    Thanks,
    Leela

    HI Leela,
    From Payload we are getting "Crépy en Valois". But while storing in the database it is storing like "Cripy en Valois ".
    this cud be problem of encoding.As the language you are dealing with is a unicode language....you can change the settings in RFC destination encoding part.Providing the proper code page  for your intended language .
    Please mention if this happens to be useful or any solution if you cud find out.
    Cheers,
    Abhishek.

  • Changing Microsoft SQL Server jdbc encoding

    How do i override the encoding of strings using jdbc against a MsSQL database? In MysqL, i see there is an override in the connection URL ;characterSet=UtF-8
    How would i do the same for MsSQL?
    I am using jdbc to migrate data and i need to write utf-8 encoded data into varchar columns (I cannot use nvarchar for legacy reasons). My jvm file.encoding is set to CP1250, so if change that to utf-8 the data is stored correctly. Is there a different
    way to override the character encoding used by MsSQL jdbc drivers?
    I see CodePageOverride, SetStringsAsUnicode connection parameters, but they dont seem to help.

    Hello,
    SQL Server don't support UTF-8 encoding, only ASCII (varchar) and Unicode (nvarchar).
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • URGENT - MICR encoding in the checks

    Hello Everybody,
    This is an extremely urgent situation for me as we need to get ready for our GO _live during the weekend.
    AP Check printing, the bank rejected the checks because the MICR was not placed correctly. What is the easiest way to do this.
    In my template I have it marked as
    <?Check No?> <?Routing No?> <?Bank Account NO?>
    and inserted those extra characters in the front and between and marked all of them MICRE13B Match font. But the bank rejected because one of the characters was not fitting correctly in the box.
    Am I following the right procedure . I was unable to use the <?C_MICR_STRING?> bacuse then it does not insert the additional characters, thats whay i split it and put the spacing manually. PLEASE HELP!!!
    Thanks
    Vidhya

    Hi Vidhya
    Its not clear to me 'why' the MICR string is not in the right place, horizontally or vertically?
    If its horizontally you can combine the components of the micr string using the concat function
    <?concat(MICR1,' ',MICR2,' ',MICR3)?>
    If its the spacing between the MICR components - try changing the font on the space character btw them.
    If its vertical. Goto to Tools > Options > General tab in Word and change the measurement to points. Now you should have v fine control over the position of the micr fields assuming you have have put them in a table.
    Regards
    Tim

  • Urgent- Jdbc configuration settings (mysql)

    Hi,
    I do want to do a scenario like File to jdbc.
    I have installed mysql in my laptop. can anybody tell me how do I configure the driver settings prior to the doing the same.
    And also let me know, how do I find the driver and connection parameters for the same.
    cheers.,
    Stallin

    Hi Stallin
    check this pdf
    <b>How To Install and Configure External Drivers for JDBC & JMS Adapters</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
    also check
    Otther option is download JDBC Driver from Microsoft Website
    http://www.microsoft.com/downloads/details.aspx?FamilyID=6D483869-816A-44CB-9787-A866235EFC7C&displaylang=en
    and deploy the JDBC driver using SDM.
    <b>JDBC Driver Deployment Guide...</b>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70ffd890-0201-0010-708f-d5dad2dfcf3a
    <b>
    how to configure drivers:</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    also http://www.oracle.com/technology/software/tech/windows/odbc/index.html
    Help Required on File to JDBC scenario
    JDBC Driver?
    Thanks
    Regards
    Abhishek Agrahari

  • Urgent---JDBC driver

    I did download freetds driver.....it was
    a latest zip file....
    I am not sure where I have to extract the driver files so that I can use them...
    I am using JRUn and my database is MS SQL server 2000...
    I have extracted it in my jrun(root)/servers/lib
    C:/ALLAIRE/JRUN/SERVERS/LIB
    But still it gives me CLASSNOTFOUNDEXCEPTION...
    PL GUIDE ME

    Hi! Let's say you extracted all the files in the ZIP archive to the c:/jdbc directory. Then, the C:/jdbc directory should be in your classpath. That will solve the problem.
    Hope this helps!
    Cheers!

  • Urgent : JDBC How to Count Values in result set.

    Hi all,
    How can i find the size of ResultSet i.e. The number of records returned by a select statement.
    Thanks in advance.
    Abhishek

    int nb = 0;
    while (rs.next())
    nb++;

  • URGENT JDBC help needed. Thanks a lot~

    Hi!
    I have 3 java files.
    1st : The INTERFACE which accepts users' input
    2nd : CHECK the input, check c = new check(input);
    3rd : QUERY the Database using the input, query q = new query(q);
    Basically, the INPUT is passed as a parameter from one file to another file.
    My question is, how to pass the query results back to the interface (i.e., the 1st java file)?
    Thanks a lot~

    Could you briefly write the modifications of the 3
    java files needed for me please?
    1st : The INTERFACE which accepts users' inputJust accepts or displays?
    If displays then....
    - Take ArrayList
    - Extract data from ArrayList
    - Put data into gui components.
    2nd : CHECK the input, check c = new check(input);No changes needed.
    3rd : QUERY the Database using the input, query q = new query(q);1. Create ArrayList, call it 'a'
    2. Create ArrayList for each record in ResultSet, call it 'r'
    3. Extract data from ResultSet row, put into 'r'
    4. Put 'r' into 'a'
    5. Loop back to 2 until ResultSet is empty.

  • JDBC Reciever Encoding

    Hi
    my scenario is FILE -> XI -> JDBC
    Im using content conversion to convert the file from flat to xml
    the encoding is UTF-8 , I want to change it to ISO-8859-8
    because the hebrew letters is changed to question marks
    any ideas?
    thx,Shai

    Hey
    have a look at the following.
    Urgent : Change Encoding type?
    Re: Change encoding from utf-8 to iso-8859-1 in JMS receiver!
    u have to use XSLT mapping to change the encoding
    Or if u just want to read the Hebrew characters then i guess the better idea would be use Text as File Type and ISO-8859-1 as encoding in sender communication channel
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Retrieving PL/SQL Table Type returned by stored procedure using Java.

    Hi All,
    I am facing an issue in a Stored Procedure (SP) which returns Table Type, the PL/SQL complex type.
    Below mentioned is how my stored procedure looks like.
    CREATE OR REPLACE package sp_test_pkg as
    TYPE v_value_table_type is table of SW_VALID_CODE.swValue%Type
    index by binary_integer;
    v_swRMAStatus v_value_table_type;
    procedure sp_test
    (locale      in int,
              name      in SW_CODE.swName%Type,
              v_value_table out v_value_table_type,
    batch_size in int,
    out_batch_size in out int,
    status out int);
    end sp_test_lcode_code_pkg;
    My java program to access this stored procedure is as given below:
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class OracleTest {       
         public static void main(String args[]) {
         Connection con = null;
    OracleCallableStatement cstmt = null;
    String url = "url";
         String userName = "username";     
         String password = "password";
    try
              DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());     
              con = DriverManager.getConnection(url, userName, password);
         cstmt = (OracleCallableStatement)con.prepareCall("begin " +
              "sp_test_pkg.sp_test_pkg(?,?,?,?,?,?); end;");
              cstmt.setInt(1, 1);
         cstmt.setString(2, "Test");
              cstmt.registerOutParameter(3, OracleTypes.ARRAY);
              cstmt.setInt(4, 10);
              cstmt.setInt(5, 1);
              cstmt.registerOutParameter(5, Types.INTEGER);
              cstmt.registerOutParameter(6, Types.INTEGER);
              cstmt.execute();
    } catch(Exception ex) {
    ex.printStackTrace(System.err);
    } finally {
    if(cstmt != null) try{cstmt.close();}catch(Exception _ex){}
    if(con != null) try{con.close();}catch(Exception _ex){}
    When i execute this java program, i get the following error:
    java.sql.SQLException: Parameter Type Conflict: sqlType=2003
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:229)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterBytes(OracleCallableStatement.java:245)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:389)
         at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:452)
         at OracleTest.main(OracleTest.java:49)
    I am not sure where i am going wrong. I have never worked on such complex types before. I want to retrieve the complex table type returned by the stored procedure using my java source code.
    Can anyone please help me out in resolving this issue?. This is very urgent.

    JDBC does not recognise types declared in PL/SQL. This is documented in the Dev Guide. [Find out more|http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/oraarr.htm#1057625].
    The only work around would be to build a wrapper which calls your existing PL/SQL procedures and returns a SQL type instead. Obviously not knowing your precise scenario I have no idea how much work this entails for you. It may be worth building a code generator.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Urgent... unable to load JDBC driver

    i have developed a servlet which will establish connection to mySQL.. but it couldn't load the JDBC driver even i placed
    [ mysql-connector-java-2.0.14-bin.zip ] in [ C:\j2sdk1.4.2_05\jre\lib\ext\ ]
    in fact.. it work fine b4 i format my notebook.. anyone can help me??
    pls note that i using APACHE TOMCAT and mySQL 3.23
    pls help.. very urgent one
    the following is my servlet code.....
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
    static final String dbURL = "jdbc:mysql://localhost" ;
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException {
    Connection conn = null;
    String nextJSP = null;
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    catch (ClassNotFoundException e) {
    throw new ServletException("Unable to load JDBC driver");
    }

    i already add new variable in environment variables
    variable name = CLASSPATH
    variable value = C:\j2sdk1.4.2_05\jre\lib\ext\mysql-connector-java-2.0.14-bin.jar;
    but the same output is come up.. still unable to load my JDBC driver in TOMCAT... y?

  • Urgent help needed in jdbc

    Hi Experts,
    I am getting the following error while trying to send a request from HTTP test client to my database, inspite of giving the defining the select query perfectly,
    Please help me out in this regard, it is a urgent requirement.
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'tdsp_esiid' (structure 'STATEMENT'): java.sql.SQLException: ORA-00923: FROM keyword not found where expected
    </SAP:AdditionalText></SAP:Error>

    Hi,
    Use your structure like this.
    <StatementName4>
    <dbTableName action=”SELECT”>
        <table>realDbTableName</table>
    <access>
    <col1/>
    <col2/>
    <col3/> 
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName> 
      </StatementName4>
    action=SELECT
    Statements with this action cause existing table values to be selected. Therefore, the statement corresponds to an SQL SELECT statement.
    The <access> block contains the column names to be selected, a <key> element contains the columns whose values must be identical with the specified value to get the new column values. The name of the <key> element is arbitrary. Column values within a <key> element are combined with a logical AND; different <key> elements are combined with a logical OR.
    A statement with the action SELECT must have exactly one <access> element. The number of <key> elements with arbitrary names is not restricted.
    The corresponding SQL statement for StatementName4 in the example above is as follows:
    SELECT col1,col2,col3 FROM dbTableName  WHERE ((col2=’val2old’ AND col4=’val4’) OR (col2=’val2old2’))
    If there is no <key> element, or if there is a <key> element but it is empty, then no condition is specified and the entire table is to be selected. This may not be permitted by the configuration of the JDBC adapter for security reasons and will therefore result in an error during message processing and an appropriate error message.
    The response document contains the result of the action in XML format as follows:
    <row>
    <column1>value11</column1>
    <column2>value12</column2>
    </row>
    <row>
    <column1>valueN1</column1>
    <column2>valueN2</column2>
    </row>
    This will help you.
    regards
    Aashish Sinha
    PS : reward points if helpful

  • JDBC-XI-IDoc scenario -- Urgent

    Hi All,
    I am doing a scenario JDBC-XI-IDoc.
    Now the Oracle table in the source system, has a control table as well.
    This control table has 2 fields MSGID and MSGTSTAMP. These 2 fields has to be updated for each record.
    Now please tell me, how this can be handled?
    The MSGID and MSGTSTAMP r created in XI, so we need to send it back to source system, but how?
    Its urgent, early reply will b appreciated.
    Thanks in advance.
    Neetesh

    Hi Neetesh,
    Yes , you can do it using BPM.
    <i>So, it should be something like- XI triggers IDoc to R/3 and almost at the same time, sends back the MSGID and MSGTSTAMP to JDBC.</i>
    >>> Then I think you can do without Synch communication.
    -Receive the Message in BPM(after mapping)
    -Fork step to send both messages at same time
    -Send to Idoc 
    -Send to JDBC
    But you need to have 2 receivers.
    1) BPM->Idoc
    2) BPM->JDBC
    It will do.
    SO u can do without Synch communication also.
    Pls acknowledge
    Regards,
    Moorthy

  • Date & time in sql through jdbc URGENT!!!

    hi,
    How do I enter date & time in this format "16 MAR 2002 12:54:23 pm" in the database of oracle through jdbc-sql?
    Please help me out.
    Its urgent.
    Regards
    Deepa Datar

    If you are familiar with Oracle, you can use PL/SQL to do the work for you. I didn't test this, but it's probably pretty close.
    String sql = "INSERT INTO TBLA
    VALUES(TO_DATE('16 MAR 2002 12:54:23 P.M.','DD MON YYYY HH24:MI:SS P.M.'))";
    I'm assuming that you know how to insert data, you are only wondering about the specifics of dates?
    This can also be done using a prepared statement. You would code the insert statement something like this:
    String sql = "INSERT INTO TBLA
    VALUES(TO_DATE(?,'DD MON YYYY HH24:MI:SS P.M.'))";
    I would suggest that if you can convert the time military (24 hour) time, it is easier to handle. The data format model for this is HH24. Otherwise you will need two prepared statements, one for A.M. and one for P.M.
    Good luck.

Maybe you are looking for