Globalization Problem

Hi,All.
I am chinese,and recently I have joined a project using occi.In our project,there are three major tires:database,server program,and client program.Our Oracle Databe 10.1.0.2 will run on Red Hat Linux Advanced Server 3,server c++ program ,which is occi based ,will run on Red Hat Linux 9,and our client program is Microsoft MFC programs.As you know ,the client will pass chinese characters to the server program,then the server program will do :store the data to the database,update some record based on the character recieved ,fetch some data from database ocorrding the characters recieved from the client,or something else like that. The next post I will show you our test code.

//for network functionality
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
//for multipress functionality
#include <unistd.h>
//general usage
#include <iostream>
//for oracle functionality
#include <occi.h>
using namespace oracle::occi;
using namespace std;
void str_echo(int sockfd,Connection * conn,long uid)
utext line[128];
ssize_t n=0;
if((n=recv(sockfd,(char*)(line),128*2,0))==0)
send(sockfd,"Nodata Recieved",15,0);
close(sockfd);
exit(1);
line[n]=0;
try
Statement * stmt=conn->createStatement(
"insert into charsetTest values(:1,:2,'Chinese')");
Number val(uid);
UString name(line);
stmt->setNumber(1,val);
stmt->setUString(2,name);
stmt->execute();
conn->commit();
conn->terminateStatement(stmt);
catch(SQLException ex)
cerr<<"Oracle Error: "<<ex.what()<<endl;
send(sockfd,(char*)line,n*2,0);
close(sockfd);
exit(1);
int main( int argc, char * argv[] )
//Environment * env=Environment::createEnvironment(Environment::DEFAULT);
Environment * env =Environment::createEnvironment("ZHS16GBK","OCCIUTF16");
Connection * conn;
try
conn=env->createConnection("amber","xingxing","oratvt");
catch(SQLException ex)
cerr<<"Oracle Error :"<<ex.what();
int listenfd,connfd;
long uid=5;
socklen_t clilen;
pid_t childpid;
struct sockaddr_in servaddr ,cliaddr;
if((listenfd=socket(AF_INET,SOCK_STREAM,0))<0)
cerr<<"Error1"<<endl;
exit(1);
bzero(&servaddr,sizeof(servaddr));
servaddr.sin_family=AF_INET;
servaddr.sin_addr.s_addr=inet_addr("192.168.0.102");
servaddr.sin_port=htons(8080);
if(bind(listenfd,(sockaddr *)&servaddr,sizeof(servaddr))<0)
cerr<<"Error2"<<endl;
exit(1);
if(listen(listenfd,1024)<0)
cerr<<"Error3"<<endl;
exit(1);
cout<<"Begin Working........"<<endl;
for(;;)
clilen=sizeof(cliaddr);
connfd=accept(listenfd,(sockaddr *) &cliaddr,&clilen);
if((childpid=fork())==0)
close(listenfd);
str_echo1(connfd,conn,uid);
exit(1);
uid++;
close(connfd);
uid++;
close(listenfd);
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
return 0;

Similar Messages

  • Globalization problem page "1.APP_ID", "2.APP_ID"

    When we published app from one language to another we get in that translated app pages which looks like:
    "APP_PAGE_ID.APP_ID"
    in our case for app 101 this looks like:
    1.101, 2.102, 30.101, 31.101
    and normally nothing works ok.
    here is the image of that live:
    http://i4.tinypic.com/10453yr.png
    Second thing is that every time authentfication scheme is change to noting, so there is no current authentification scheme! When we recreate auth. scheme, then we face the problem with page id's (shown before)
    P.S:
    Tried with another language and export to new id 202 and the result is the same.
    Could anyone help please...
    Message was edited by:
    Funky
    Message was edited by:
    Funky

    Joel,
    THX for your post.
    I have not edited translated page in any way...I think I have a picture what translated application should be.
    I still think that I'm missing something-could you please comment picture and page numbers....do they look normal to you?
    With page_id changing, any page reference doesn't work!!!!
    If link is referensing page (f?p=APP_ID:PAGE_ID, f?p=100:2) now it is referencing page that doesn't exist (f?p=101:2) but "2.101" exist...
    Ok it looks that these pages (from app 101) should be called somehow internally according "FSP_LANGUAGE_PREFERENCE"?? Ok if this is fact...is there any link that give detailled explanation what to do make work these two apps together...
    I read twice the manual but nothing ... still I'm confused!
    THX!

  • Globalization question (aghhhhhhhhh) 1.101, 2.101 ,,,

    Our base app is 100 and language is CROATIAN and we set to translated application 101 language english.
    We have made translatation according all 6 steps to "How to Translate" page in application.
    How can we call english app from base app. Our URL of base app is:
    h**p://server:port/pls/htmldb/f?p=100:1so we made 101 app to be english app.
    When we tried:
    h**p://server:port/pls/htmldb/f?p=101:1we get an error:
    ORA-0000: normal, successful completion
         Error      Unable to fetch authentication_scheme in application 101.
    OK           Out authentification type is HTMLDB_PUBLIC!
    What is bothering us that there is nowhere 101 shown.
    We found out that authentification scheme was deleted!!! No one from us has done that but Appex itself! Guys check this out!
    After recreating to public we now get this error!:
    Contact your application administrator.
         Error      ERR-1016 Application "101" Page "1" not found (requested language="en")
    OK      So I dicovered that in 101 app are 1.101, 2.101 and "APP_PAGE_ID.101" pages.
    Is that normal-how to get normal numbers?
    Message was edited by:
    Funky

    Scott,
    thx for reply...but i didn't understand it.
    Second...with page_id change, any page reference doesn't work!!!!
    If link is referensing page (f?p=APP_ID:PAGE_ID, f?p=100:2) now it is referencing page that doesn't exist (f?p=101:2) but "2.101" exist...
    Could you please give atention on my pic and page_id's (Globalization problem page "1.APP_ID", "2.APP_ID"
    How could I referenced that second app from my first app..I'm totally confused?
    THX!
    Message was edited by:
    Funky

  • Server Diagnostic Problem

    I have foun problem in SAP server machine. i try to many time re-start machine. but not solve this problem.
    error message prompt.
    OSoftSendGovernor
    status:

    Hi,
    this is not a globalization problem.
    However maybe OsoftSendGovernor Service helps.
    Best regards,
    Nils Buerckel
    SAP AG

  • Language setting problem in globalization of application

    hello,
    I had an assignment of Globalizing a application from English to Italian language(based on browser language preference)
    I have successfully translated my htmldb application to Italian from english.
    i.e I exported the XLIFF file of the application and than translated it and uploaded it and then published the application.
    The translation is working absolutely fine when I set the Primary language to Italian.
    But thats not the proper way as the Primary language should be English.
    But if I set the primary language to English and set the browser language to Italian it shows the translated text properly but the templates for the region and items are
    not displayed.
    I am not able to make it out.
    I have followed all the steps given in Oracle HTMLDB 2.0 user documentation
    (Chapter 15), but
    am not able to work it out.
    Please kindly help me.
    Thanks in advance.
    Sanjay.
    null

    hi,
    I have successfully exported and imported translations.
    It is also working fine but the problem is with "edit globalization attributes".
    In this we have to set primary language to the application
    and there are 5 options as:
    1) No NLS (Application not translated)
    2)Use Application primary Language
    3) Browser (use browser language preference)
    4) Application preference(use_FSP_LANGUAGE_PREFERENCE)
    5)Item Preference?(use item containing preference)
    Now when i am making primary language as italian the application is running successfully but that is wrong because app. primary language should be English in which it is made.
    Now when i am choosing 3rd option (browser based) the application is not showing images(or templates) only it
    is displaying the translated text.
    So please tell me how to set these settings so that the application can be run successfully in both the languages.
    Please kindly help me in this.
    thanks
    sanjay.
    null

  • Installation problem on Windows XP Platform

    When I try to install Oracle 9i, the process simply stops. The installation proceeds until it gets to "Installing Oracle 9i Globalization Support 9.0.1.1.1. It hangs up and the last bit of information in the log is:
    Calling query LangQueries1.3.6 GetOSNlsLang
    nlsLanguage = en
    nlsTerritory = US
    nlsVariant =
    It appears that it can't locate nlsVariant.
    Please help!!!

    This appears to be a known problem with some of the earlier versions of Sun One Studio; here's a page about it: http://forte.sun.com/cgi-bin/WebX?[email protected]@.ee815f4
    The most current version of S1S doesn't have this problem, and can be downloaded from here: http://forte.sun.com/ffj/index.html

  • $200 reward to solve problem with JDBC and CLOB.getCharacterOutputStream

    I'm trying to update CLOB with the getCharacterOutputStream as suggested in the example code. It works with US7ASCII DB instance but not instances in UTF8.
    I've been browsing through all the Oracle doc's and found some rather confusing statements:
    In the page at http://oradoc.photo.net/ora816/java.816/a81354/oralob2.htm#1043220
    it says: [When writing to or reading from a CLOB, the JDBC drivers perform all character set conversions for you.]
    also: [The oracle.sql.CLOB class supports all the character sets that the Oracle data server supports for CLOB types.]
    So far so good.
    In the page at http://oradoc.photo.net/ora816/java.816/a81354/oraint3.htm#1012518
    it says [The oracle.sql package supports these datatypes in several ways: CLOBs point to large fixed-width character data items (that is, characters that require a fixed number of bytes per character) and are supported by the oracle.sql.CLOB class.]
    Ooh no! Is this for real? UTF8 is variable width and does this mean it is not supported?
    Any way to get around this?
    In the page at http://oradoc.photo.net/ora816/java.816/a81358/03_pub2.htm#36009
    says [6.The mappings to oracle.sql classes are optimal because they preserve data formats and require no character-set conversions (apart from the usual network conversions). Those classes are especially useful in applications that "shovel" data between SQL and Java.]
    "No character set conversion"? Very confusing!
    I've been hammering on this CLOB/JDBC/UTF8 problem for more than a week now and I really appreciate some solutions, workarounds, or whatever help I can get. I'm running java stored procedure in 8.1.6 on Linux RH6.2.
    For your trouble, I'd pay $200 for the first guy who come up with a verifiable solution.

    This is just findings based upon your comments:
    Please refer to document Oracle8i National Language Support Guide
    Release 2 (8.1.6) from Oracle Documentation Library, Release 8.1.7
    Chapter 6 Java,
    There its clearly mention that:
    "Oracle JDBC drivers provide globalization support by allowing users to retrieve data from or insert data into a database in any character set that Oracle supports. Because Java strings are UCS2 encoded (16-bit Unicode) for JDBC programs, the target character set on the client is always UCS2. Character set conversion is required to convert data from the database character set (Db Charset) to UCS2. This applies to CHAR, LONG, CLOB, and VARCHAR2 data types; RAW data is not converted. "
    Also..please refer this...
    "oracle.sql.CLOB's method getCharacterStream() returns the contents of a CLOB as a Unicode stream."
    "The techniques that Oracle's drivers use to perform character set conversion for Java applications depend on the character set the database uses. The simplest case is where the database uses a US7ASCII or WE8ISO8859P1 character set. In this case, the driver converts the data directly from the database character set to UCS2,which is used in Java applications. "
    "If you are working with databases that employ a non-US7ASCII or non-WE8ISO8859P1 character set (for example, Japanese or Korean), then the driver converts the data, first to UTF8, then to UCS2. "
    In my case the characte-set of the database is WE8ISO8859P1 and for security reason i can't change the character set but my feeling is that if you are updating the CLob from the java client you are forming a reference of a clob in the client which is UCS2 at the Java side. Now when you are populating the clob through java.io.Writer and call the procedure to pass the reference of the clob to the procedure then I believe the JDBC will convert the UCS2 datatype of Clob to UTF8 in the database.
    You can try out the code snippet:
    package ServletGDC;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import oracle.sql.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import ClassesGDC.*;
    public class testUpload extends HttpServlet {
    private String m_strMessage="";//It stores the message to be uploaded along with the Document
    Connection conn=null;
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    String strContent="";
    //res.setContentType("application/msword");
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    try {
    CallableStatement cmt=null;
    OutputStream output=null;
    ByteArrayOutputStream byteoutput=null;
    String strDocString="";
    oracle.sql.CLOB tempClob = null;
    String strPassedFileName="";     // the file name passed in the request object
    String strStdFilename="";//the file name to be given to the best practice
    String strSaveDirectory="";     //the directory in which the bp is to be saved
    String strParamName="";//name of parameters
    String strParamValue="";//value of parameters
    int intTempVariable=0; // temporaty variable
    long lngSizeOfFileUploaded=0;//stores the size of the file which had been uploaded in the file system
    File filePathOfFileUploaded=null;//stores the path of the file uploaded to the file system
    String strQuery="";
    //ST------------checks if the user has logged in or not-----------------------
    HttpSession session=req.getSession(true);
    if(req.getContentLength()>20*1024*1024)
    throw new skip("The size of the posted content is more than 10 MB . If you have a best practice whose size is more than 1 MB please mail it to Us.");
    byteoutput = new ByteArrayOutputStream();
    MultipartParser mp = new MultipartParser(req, 20*1024*1024); // 10MB is the limit of the file to be uploaded
    Part part;//Its an abstact part which helps in retrieving information about the file and the parameters
    while ((part = mp.readNextPart()) != null) {//Reads the next part
    strParamName = part.getName();
    // the following if is executed if the part is for a parameter rather than a file
    if (part.isParam()) {
    }else if (part.isFile()) {
    // it's a file part
    m_strMessage="inside file part";
    FilePart filePart = (FilePart) part;
    strPassedFileName = filePart.getFileName();
    strContent= filePart.getContentType();
    out.println("<BR><font color=red>strPassedFileName is "+strPassedFileName+"</font>");
    if(strPassedFileName != null || !(strPassedFileName.trim().equals("")) ) {
    // the part actually contained a file
    out.println("<BR><font color=red> before forming long</font>");
    //lngSizeOfFileUploaded = filePart.writeTo(filePathOfFileUploaded);      //the statement upload the bestpractice in the
    lngSizeOfFileUploaded = filePart.writeTo(byteoutput);     //specified file path filePathOfFileUploaded.
    out.println("<BR><font color=red> after file is written into the outputstream</font>");
    else {
    throw new skip("The file name is null or it is empty space. Files in such Format are not accepted");
    }//end of else if
    }//end of while loop
    if(     lngSizeOfFileUploaded==0)     {// the size of the file uploaded is zero then the file supplied was not proper and hence exception is to be thrown
    //if(filePathOfFileUploaded.exists())
    //     filePathOfFileUploaded.delete();
    throw new skip("The File could not be uploaded,Possible reasons may be that the file is sent null or the file is corrupted");
    //END---------------the file is uploaded in the proper directory--------------------
    //res.setContentType(strContent);
    out.println("<BR><font color=red>long value is : "+lngSizeOfFileUploaded+" and content is "+strContent+"</font>");
    String strbyte= byteoutput.toString();
    byteoutput.flush();
    Class.forName("oracle.jdbc.driver.OracleDriver");
    // Establish network connection to database
    conn = DriverManager.getConnection("jdbc:oracle:thin:@pc-p32670:1521:GDCDBI","gdc_user","myuser");
    //if(conn!=null)
    out.println("<BR><font color=red>Connection formed"+conn);
    //els
    //out.println("<BR><font color=red>long value is : "+strbyte+"</font>");
    try{
    tempClob = oracle.sql.CLOB.createTemporary(conn,true, oracle.sql.CLOB.DURATION_SESSION);
    out.println("<BR><font color=red>tempClob : "+tempClob);
    tempClob.open( oracle.sql.CLOB.MODE_READWRITE);
    java.io.Writer tempClobWriter = tempClob.getCharacterOutputStream();
    // writing the string formed from the multipart file to the clob
    tempClobWriter.write(strbyte);
    if(tempClob!=null){}
    out.println("<BR><font color=red>CLOB value is : "+tempClob+"</font>");
    strQuery="{call INSERT_CLOB(?,?)}";
    cmt=conn.prepareCall(strQuery);
    cmt.setString(1,strPassedFileName);
    cmt.setClob(2,tempClob);
    cmt.registerOutParameter(2,java.sql.Types.CLOB);
    cmt.execute();
    tempClobWriter.flush();
    tempClobWriter.close();
    tempClob.freeTemporary();
    //res.setContentType(strContent);
    //strDocString.toString();
    out.println("<BR><font color=red>bob is "+strbyte+"</font>");
    tempClob.close();
    }catch(Exception e){
    tempClob.close();
    out.println("<font color=blue> Error is :"+e.getMessage()+"</font>");
    //e.printStackTrace(out);
    cmt.close();
    //out.println("<BR><font color=red><h2><b>SUCCESS</h2></font>");
    //res.sendRedirect("../test/showfile.jsp?contentype="+strContent.trim()+"");
    }catch(Exception e){
    java.util.Date d = new java.util.Date();
    String s =d.toString();
    out.println("<font color=blue> Error is :"+e.getMessage()+"</font>");
    //e.printStackTrace(out);
    }finally{
    try{
    if(conn!=null)
    conn.close();
    }catch(Exception e){
    out.println("<font color=blue> Error is :"+e.getMessage()+"</font>");
    }// end of finally
    } //end of doPost
    } //end of class
    in the Procedure you will be inserting/updating the clob in a table with the reference clob in the out parameter of the procedure
    Thanks.

  • Problem with date format mask 'D'

    I am experiencing an extremely thorny problem with the date format mask ‘D’. I am trying to use it to check whether today is a Monday. The variable v_temp_day is set to sysdate. For the last 4 weeks the code has behaved erratically – giving a different result at 02:00 than at 10:30 even though it is only taking account of the date. In desperation I inserted a debug statement formatting the date in a variety of ways – with interesting results. Oracle is somehow managing to tell us that today is simultaneously Monday and Tuesday depending on which format mask you choose. Anyone got any thoughts or suggestions?
    PROC_ID TO_CHAR(STAMP_TIM
    EVENT_SQLERRM
    RRHKP010 17092007 02:00:00
    TO_NUMBER( TO_CHAR( v_temp_day, D ) ) = 2. TO_CHAR( v_temp_day, D ) = 2. TO_CHAR( v_temp_day, DY ) = MON. TO_CHAR( v_temp_day, DAY )
    = MONDAY . TO_CHAR( v_temp_day, Day DD-MON-YYYY HH24MISS ) = Monday 17-SEP-2007 020000. TO_CHAR( v_temp_day, D ) = 2.
    SQL> select to_char( sysdate, 'D' ) from dual ;
    T
    1

    My book says the trunc(d,'iw') will return "same day of the week as Jan 1st of that year"It's bad book.
    Please read about [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96540/functions176a.htm#80159]TRUNC & 'IW' Format Model and [url http://oraclesvca2.oracle.com/docs/cd/B10501_01/server.920/a96529/ch3.htm#50331]Database Globalization Support Guide: First Calendar Week of the Year in the manual.

  • Language Problem while exporting and importing data

    hi,
    I have Oracle version 8.1.7.0.0 installed on one server and 9.2.0.1.0 installed on new server.
    I'm copying and pasting my version info from SQL*Plus:
    SQL*Plus: Release 8.1.7.0.0 - Production on Mon Aug 22 10:46:31 2005
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    SQL>
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Aug 22 12:30:06 2005
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL>
    I created new user on my new server from enterprise manager.
    Exported user from the old server and imported in the new server.
    i.e: from Oracle8i Enterprise Edition Release 8.1.7.0.0, I did
    c:\>exp system/manager file=abc.dmp owner=abc
    Then on the new server Release 9.2.0.1.0, I did
    c:\>imp system/manager file=abc.dmp fromuser=abc touser=abc
    I'm using Arabic Language on my both servers. NLS_LANG parameter on both the servers is AMERICAN_AMERICA.WE8MSWIN1252.
    On both the servers I'm able to insert and select data in arabic.
    However, after I export the data from old server to the new server, the arabic data comes in question marks.
    If I create new table and insert arabic data on new server's user abc it is displaying well. Only the data which I exported and imported is not showing arabic.
    On both old and new servers operating system is Windows XP.
    I'm stuck with this problem. Anybody having any idea about how to solve this problem please help.
    Thank you all in advance.
    Regards

    Let me be clear here. Storing Arabic data in a WE8MSWIN1252 database is not supported by Oracle and will lead to problems. You are incorrectly using the NLS_LANG to prevent proper conversion and your data appears to be okay when you use utilties like SQL*PLUS to view your data. When you write applications that don't rely on the NLS_LANG like JDBC thin driver for instance you will realize your data is in fact invalid. To learn more about the NLS_LANG you can take a look at this FAQ: http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    To migrate your database to a proper character set you can refer to this paper:
    http://www.oracle.com/technology/tech/globalization/pdf/mwp.pdf
    But please do not ask for help in supporting your current configuration in this forum.

  • I purchased my iPhone from UK which is unlocked but Now I am back to My Origin i.e INDIA and unfortunately my iPhone Display get damaged and Now I have to Repair it but..... The Problem is "iSTORE in India Doesn't Helping me in this issue"

    I purchased my iPhone from UK which is unlocked.
    But Now I am back to My Origin Place i.e INDIA.
    And unfortunately my iPhone Display get damaged..  and Now I have to Repair it but.....
    The Problem is "iSTORE in India Doesn't Helping me in this issue".
    I would request APPLE please get this FIX as I am also your customer and now it is globalization.
    SO please find any way to get this fixed...
    Apple Customer care Please send me any Services note That I can show to iStore in India i.e (In Korum mall Thane, Mumbai, Maharashtra, India )
    So I can get my dispaly fixed in INDIA itself.
    Requested to please help me out of this issue..
    Thanks
    APPLE user
    sonu.mas007

    They can provide some kind of way towards this solutions...
    eg:
    1) Accept my UK iPhone in India courier it to Purchased Place (Repaired it)
    2) Accept my UK iPhone in India Take some difference assign me India iPhone.
    3) Accept my UK iPhone in India give me any option to ugreade to iPhone 5 (Indian).
    4) Accept my UK iPhone in India give me some Receipt (Courier me My new iPhone from UK).
    5) Approve my VISA for going to UK again as it not easy for INDIAN to go there with some kind of this Reason.
    6) Give the Postal Address where we can send our APPLE to get only Service and they can send it back to us if it got reparied.
    As no one would like to go UK only to Purchase APPLE..
    There are some personal reason they have to go to Other countries for ... and If some one is FAN of APPLE like me would do the same mistake that I have done..
    7) If the APPLE wanted to serve their customer they would have get to the solutions with their excellent mind.
         As far as I am concern I am just the USER of my FAV APPLE but.. .. I guess this policy would not keep me as the SAME FAN of APPLE as I am now...
    If this is not going to get solved I guess I have to start with other BRAND Like SAMSUNG S4 where I can get everything in my STATE..
    But YEH it not a right was to have this BAD policy.
    I just dont know why they are not coming ip with great solution for this issue in this tecnology world.
    Any help to find other BEST Brand who has awesome services..

  • Encoding Problem: Losing German Umlaute from gathering data from Oracle 8i

    my problem does concerns the diplay of german Umlaute such as äöüß etc. The OS is NW65 out of the box with Apache 2.0.49 and tomcat 4.1.28, JVM 1.4.2_02 and JDBC-driver Oracle 8i 8.1.7 JDBC Driver.
    The Data containing Umlaute which are retreived from the Database does somehow lose it´s Umlaute. The Umlaut which are coded in the servlet directly in order to generate the regular HTML does display the Umlaute without any problem.
    The same servlet and request from a Unix Enviroment does work fine. We have checked all Codepage settings (Java, NetWare, Tomcat etc).

    Hi Sven and Ingmar,
    I will try to kill 2 birds with one stone here. First of all you should check the definition of your current database character set and make sure that it can support all the characters that you need to store in your database.
    Please check out
    http://www.microsoft.com/globaldev/reference/iso.asp
    WE8ISO8859P9 is for Turkish and WE8ISO8859P1 is for western European (without Euro support).
    Next you need to set your client NLS_LANG character set (eg. for your SQL*Plus seesion), so that Oracle can convert your client operating system characters correctly into your database character set. The NLS_LANG character set also determines how SQL*Plus interpret/display your characters upon retrieval from the db.
    In both of your cases , I believed that the client NLS_LANG setting was not defined , hence this was defaulting to AMERICAN_AMERICA.US7ASCII. This is telling SQL*PLUS that the your client operating system can handle ASCII data only , hence all the accented characters are converted to ASCII during insertion into the database. Likewise upon data retrieval.
    If you are running SQL*PLUS client on English Windows then you NLS_LANG character set should be WE8MSWIN1252 and for Turkish Windows it should set to TR8MSWIN1254 .
    If the client character set and the database character set are the same , Oracle does not perform any data conversion, that's why if you use a US7ASCII database and set you NLS_LANG character set to US7ASCII .then you can insert all the accented Latin characters , Japanese , Chinese etc. This configuration is not supported, and it can cause many issues.
    For more information on character set configuration and possible problems.
    Please check out the white paper Database Character set migration on http://otn.oracle.com/products/oracle8i/content.html#nls
    And the Globalization Support FAQ at:
    http://technet.oracle.com/products/oracle8i/
    Regards
    Nat
    null

  • Problem with decimal separator

    How to change default settings for decimal and group separators?
    Example:
    - 10g database
    - APEX v.3.1.2.00.02
    0.00: S H O W: application="1" page="6" workspace="" request="" session="1327891581523707"
    0.00: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: hr
    0.01: alter session set nls_language="*CROATIAN*"
    0.01: alter session set nls_territory="*CROATIA*"
    0.01: NLS: CSV charset=*EE8MSWIN1250*
    *0.01: ...NLS: Set Decimal separator="."*
    *0.01: ...NLS: Set NLS Group separator=","*
    - 11g database
    - APEX v.3.1.2.00.02
    0.00: S H O W: application="1" page="6" workspace="" request="" session="124256584707880"
    0.00: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: hr
    0.00: alter session set nls_language="*CROATIAN*"
    0.00: alter session set nls_territory="*CROATIA*"
    0.00: NLS: CSV charset=*EE8MSWIN1250*
    *0.00: ...NLS: Set Decimal separator=","*
    *0.00: ...NLS: Set NLS Group separator="."*
    Both applications are same and in both applications Application Primary Language globalization attribute is set to Croatian (hr) but I'm getting different decimal and group separators.
    Querying v$nls_parameters view I saw that, in first case NLS_NUMERIC_CHARACTERS parameters are set same on database and apex ('.,') but in second case they are different. On database is '.,' but on apex application ',.'
    Why?
    Please help!

    Make changes in the regional configurations of your PC.
    Maybe its solve your problem.

  • Problems with special characters when exporting to LDAP

    Hi,
    Im using standard report RPLDAP_EXTRACT to export data to LDAP. The problem is that the special characters (in this case polish letters) do not save correctly (we get for instance '?' instead of normal letter)
    I tried switching the configuration of the RFC destination (used: 'found communication Code Page option') but I get a message: "Your selection is restricted" and cannot make any changes.
    Can anyone please help in this matter?
    Regards,
    Hubert

    1) Your database should be able to handle and properly store all the supported charactersets needed. With UTF you are in the clear regarding storing all that kind off idfferent characters
    See http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    2) The recieving party (the cleint software) hopefully has a character set that supports all the characters that are offered by the database and can encode them. If not then you get toe upside down question markt or dark squares or something alike. If the client software is a browser, for instance windows internet explorer, then most encoding settings are buildin and you only have to switch. Sometimes you will have to add extra language support on Windows Internet Explorer. This behaviour is also the same on thick clients. Oracle by default sets these parameters in the registry, but on windows the can be overrulled on several levels like on system level, user level (start --> settings -- control panel --> system --> advanced tab --> environment settings) and or during execution via a app. configuration file or an export of the system variable on the command prompt... A unified business approach for how to handle this is needed otherwise you will have too look for these kinds off issues always all over the place (on windows and/or linux etc).
    Have a look at Mark's example of how things work regarding UTF and the like on the FAQ URL on this forum and the URL as show above. If completely lost, you will have to read up on it in the Oracel globalization / NLS manuals and see what is appropriate / can be done in your environment.

  • Problems with language after upgrade?

    Hi,
    We did an upgrade from 4.6C to 6.0 and as part of the upgrade the spanish language was imported again. SMLT was runned after the upgrade so it finished the import of the language because the upgrade do not import the whole language because it takes too much time.
    Now when I enter DB13, ST03N or some other transactions, i get a mix between Spanish, German and English only if I logged in spanish, if I login in English then everything works just fine.
    I've been looking for SAP notes about this and don´t find anything, does anybody knows about a note in reference to this problem or know how to solve this?
    In another upgrade from 4.5B to 6 the samethig happens but the client did not matter about this as they usually login in English to do administrative tasks.
    Thanks,

    Hi AC
    without being the expert, which would solve your topic... This is probably the following:
    Each object in the system is assigned to a main language and different translation languages (i.e. a field name is available in 32 different languages). The translation level depends on the type of documentation.
    The system (depending on the language settings) first tries to show you the translation, which corresponds to your login-language. If this translation is not available, then it goes back to the object in a main language (like English). A screen might then include Spanish and English Field names, or even "Placeholders".
    In newly installed SAP ECC 6.0 systems, the first thing I would think about is, that you intend to shown an object, which is not translated, or that your language is not properpy installed, or that the language presentation vector of your system is not properly maintained, or that you have Unicode topics.
    For a solution start into the following direction
    - on service.sap.com/globalization (language information and media library) find out more about the langauge concept, and the translation aspects for the different objects/ languages
    - Consider the MDMP/ Unicode topic.
    - In the system check the language settings and language import status
    - regarding upgrade/ unicode start witht he recommenations in the upgrade master guide SAP ERP 6.0, or the information at service.sap.com/unicode@sap.
    regards,
    Andreas R

  • URL problems when change application language to Spainish

    Using APEX 3.1.2
    Our application is usually in English. For a quick test we've changed the application language to Spainish through the 'Globalization' part of 'Shared Components'. Things look OK, the date pickers are showing the correct language and the NLS numeric characters are as expected - except... some page branches (from buttons, etc.) are no longer working correctly. It appears to be related to timestamps being passed across, they seem to be interpreted as multiple parameters!
    E.G. in the URL http://my_box/pls/apex/f?p=2000:5002:4461616080789919::NO:RP,5002:P5002_CALLING_PAGE,P5002_TS,P5002_ID,P5002_DT:5001%2C10-DIC-09%2006.00.00%2C000000%2C181618172273744521291303312596297592589%2C10-DIC-2009&cs=392CF7A0393244530EC469114C4996A8E
    the fractional seconds of the parameter P5002_TS is being received by the third parameter, P5002_ID, etc.
    What am I doing wrong?

    Andy Hardy wrote:
    Using APEX 3.1.2
    Our application is usually in English. For a quick test we've changed the application language to Spainish through the 'Globalization' part of 'Shared Components'. Things look OK, the date pickers are showing the correct language and the NLS numeric characters are as expected - except... some page branches (from buttons, etc.) are no longer working correctly. It appears to be related to timestamps being passed across, they seem to be interpreted as multiple parameters!
    E.G. in the URL http://my_box/pls/apex/f?p=2000:5002:4461616080789919::NO:RP,5002:P5002_CALLING_PAGE,P5002_TS,P5002_ID,P5002_DT:5001%2C10-DIC-09%2006.00.00%2C000000%2C181618172273744521291303312596297592589%2C10-DIC-2009&cs=392CF7A0393244530EC469114C4996A8E
    the fractional seconds of the parameter P5002_TS is being received by the third parameter, P5002_ID, etc.
    What am I doing wrong?Even more confused now!
    Just created a quick test app: table has timestamp, number and varchar2 fields - another number field is used for the primary key and has a matching sequence. Populated the table with various acceptable values. Created two pages using form-with-report wizard - changed all fields to 'text' to get rid of problems with datepickers not liking timestamps. Created another page with an HTML region containing items to match those on the form. Used button wizard to add a 'go' button on the form page to go to the HTML page, modified the branch to populate the HTML region items with those from the form.
    Run the report page, see the expected results, 'edit' to go to the form page, see the expected values. Press the 'go' button, goes the HTML page... the timestamp field is not populated correctly - the value is truncated at the fractional sections part i.e. where the '.' would be. Depending on where the timestamp appears in the URL, the following items will also not be populated. For example, here:
    http://loordv01.ad.dom/pls/apex/f?p=115:2:4046922604148424::NO::P2_TS,P2_ID,P2_VAL1,P2_VAL2:10-DEC-2009%2000:00&success_msg=Action%20Processed.%2F6E98BFC3726F8950ADF64DADBB5E0A87%2F
    The timestamp is the first field on the URL and none of the other values appear...
    I seem to be able to workaround this by having a PL/SQL process that just sets the called screen TS value directly i.e :P4_TS = :P2_TS - any pitfalls with this approach?

Maybe you are looking for

  • Family sharing not allowing me to make purchases without using my husband's payment method

    My Husband and I recently took the plunge and joined Family Sharing. Having pretty hectic lives, we haven't worked it all out as yet - and today, I tried purchasing an App - and all of a sudden I am being required to use my husbands iTunes account an

  • Fileaccess.httpUploadBean doesn't upload file in Jdevelper 9.0.3

    Hi, I am using Jdevelper 9.0.3 to develop a jsp Based File Upload Utility. I have attached Liberary "JSP RUNTIME" which reffers to "ojsp.jar","ojsputil.jar","oc4j.jar","servlet.jar","ojc.jar". while running the code for file upload, file doesn't get

  • File content conversion sender adapter

    Hi Friends, I am doing File to IDoc scenario. I am using File Content Conversion for File Adapter. My structure look like this MT_File HEADER1 1..1 --header1 -- header2 HEADER2 1..1   --header3 DETAILS 1..unbounded --details1 --details2 --details3 TR

  • Flash player keeps making a constant plopping noice

    Hello, I have an issue with Adobe Flash Player. Today I was watching a youtube video like normal when all of a sudden, something on my pc started making a weird plopping sound. I didn't know where it came from, restarted the computer and it stopped..

  • Application Configuration List (key/value) in SharePoint 2013

    What is the best way to have a application configuration list in SharePoint 2013? Think of a SharePoint portal with around 50 key/value pairs that needs to be configured (Similar to configuration manager that we had as part of Microsoft patterns and