How to configure non-unicode in JVM of 1.4...

hii,
Plz explain me how configure non unicode bytes in JVM, ie SYSTEM PROPERTY set to false in JVM 1.4.1 & higher verison.
waiting for reply,
Santosh

Hey cross-poster,
This is the third time you posted this question, so I shouldn't really answer you..... but it's nearly Christmas and I'm bored at work.
Firstly, if you don't know the question, then you'll never get the answer.
Every string & character in Java is in Unicode.
Think of Java as a Unicode black box.
So to support other encoding schemes you must be able to read and write them out properly.
The default encoding scheme is determined by your PC's regional settings and architecture ( Windows/Unix/Mainframe for byte ordering )
You normally don't want to mess with that.
What I've done in the past to support arbitrary encoding schemes of text files and databases, is force the user to select the encoding scheme themselves then explicitely use it in my code.
Look at java.io.InputStreamReader, it accepts an "encoding scheme" parameter, eg "US-ASCII" or "ISO8859_8".
So you can read a text file, which is encoding in multi-byte format this way.
That should at least give you some direction to ask the real question you want.
regards,
Owen

Similar Messages

  • How to use non-Unicode mode in VB6 with ADO.

    I'm using ADO on top of OraOLEDB to connect to Oracle 9.2. The database characterset is AL32UTF8. Since my client can't handle Unicode characters, I need a character conversion. However, arcording to the OraOLEDB document( which can be obtained here http://download-west.oracle.com/docs/cd/B10501_01/win.920/a95498/using.htm#1010255):
    "How Oracle Unicode Support Works
    OraOLEDB works in two modes, Unicode mode and non-Unicode mode. When the client character set is not a superset of
    the server character set, OraOLEDB automatically enables the Unicode mode. In this mode, OraOLEDB stores the data in its cache in the UCS2 encoding scheme. The user should ensure that the database's character set is UTF8 in order to prevent any data loss.
    If the client character set is a superset of the server's, the provider operates in the non-Unicode mode. This mode provides slightly better performance as it does not have to deal with larger character buffers required by the UCS2 encoding."
    My client can only use NLS_LANG VN8VN3, which is NOT a superset of AL32UTF8, so "OraOLEDB automatically enables the Unicode mode". So if I code like this:
    Text1.Font="Some Vietnamese Font"
    Text1.Text= rs1.Fields("Name").Value
    the display is bad ('?' all over the place). This is because rs1.Fields("Name").Type is adVarWChar, so rs1.Fields("Name").Value is encoded in UCS2. What I need is to make rs1.Fields("Name").Type is adVarChar, but it seems to be impossible since Field.Type is readonly.
    When I use MS provider for Oracle, I found out that rs1.Fields("Name").Type is adVarChar, so Oracle do the conversion from/to AL32UTF8 (database character set) and VN8VN3(NLS_LANG) for me.
    Since I use LOB and things that MS does not support, I want to use OraOLEDB, so anyone can help me out? It's ugent.
    I can see that some 3rd program like SQLNavigator4.3 work well with NLS_LANG = VN3VN8 and DATABASE_CHARACTERSET=AL32UTF8 (i.e the program convert between the 2 characterset).
    Please correct me if I misunderstood anything.
    I need this ugently. Any help would be appreciated. If I don't make myself clear enough, please let me know.
    Thanks in advance.

    Thank you for your reply. I started to think that everybody is out on holidays...
    The Oracle9i Client version is 9.2.0.1.0
    Oracle Provider for OLEDB version is 9.2.0.4.0
    Oracle Net version is 9.2.0.1.0, in case you need it.
    The Oracle9i Database version is 9.2.0.1.0
    But I don't think it is a version problem, is it?

  • How To Configure non-standard SMTP port

    My ISP has blocked port 25. I have a service that will deliver mail to the port of my choosing. How do I configure Leopard Server to listen on a non-standard SMTP port? 2525 for example.
    Also, I assume all I have to do on my Airport Express is set up NAT to rake external port 2525 and point it to the private address of my email server on port 2525. Is this correct?
    Thanks,
    -ernie

    Assuming such is offered, look to acquire a business-class ISP service level, and move on to the next issue? The business-class services typically provide static IP address(es), opens up server ports, and sets up DNS and ISP-side server connections for your hosts. And you can call your ISP or other assistance when your network craters; non-standard connections are (as you've found) harder to support.
    One subtlety here: in a number of cases, simply having a business-class service means you're supported by a different group within (larger) ISPs. This can be a significant advantage at times, given that the scripts and tools and such that are available for the business group will be rather more targeted than the scripts that are available for the residential services group at the ISP.
    There are a number of folks that have sought and have tried this (try a few Google searches for SMTP and non-standard port), and it mostly works. But it is fragile, and tends to be derailed when something goes weird, or when the ISP spots and shapes or blocks the server traffic.
    Also check your ISP's terms of service here, lest your network pipe be subject to summary disconnection.
    The other option is to VPN or tunnel into to a co-lo or dedicated server or a virtual hosting service; to run your servers or virtual servers somewhere without firewalls blocking the standard ports.

  • How to convert non-unicode app into unicode ASO app

    I am using hyperion 11.1.1
    I would like to convert ASOsamp app into unicode app. can someone give me some direction. I have looked into DBAG but couldnt find anything useful.
    thanks in advance.

    thanks John,
    Also i would like to know about the Alias table in multiple language ? In Samp_U i see *.alt files on the server, how do we create that ? and then how do we view using those alias table. I set the Japanese alias table as active on the Samp_U database...and i was trying to view the retrieve in Japanese in Web Analysis but it didn't work. What wrong am I doing ?
    thanks for the help again.

  • Troubles between non-Unicode R3 and Unicode Adobe LiveCycle Designer

    Hi experts,
    I'm getting troubles while trying to make a New Data Connection to R3 from Adobe LiveCycle Designer. The error say's "Cannot proccess unicode RFC in non-unicode system (for details see note 875767#)".
    I know R3 was configured non-unicode and Adobe is unicode, but non of them let me change this property even in Adobe options or in RFC options. How can I solve this problem without changing unicode R3 kernel configuration?
    Thanks

    Did you raise this SAP via an OSS message?
    Chintan

  • How to setup the connection between non-unicode client and unicode server?

    hi.
    we played the program in 4.6x that call a data from unicode server (ECC6.0) to non-unicode server.  ( not played in the unicode server.)
    When a program ended that English Character was normal, but Korean Chinease... was unknown text.
    I think conversion from unicode to non-unicode is a main reason.
    General Notes are issued for the unicode side rfc connection configuration.
    but, i want to know how to setup into the non-unicode system to interface with unicode system.
    I hope your great answer.

    Hi,
    For taht you have to deploy korean and chinese langauges seprately on non unicode system.Then try to connect to the unicode system.It will work for you.
    Regadrs
    Vijay kumar

  • How to check for Unicode/Non-Unicode SAP?

    Hi All,
    Please let me know how can I check whether an SAP system is a Unicode/Non-Unicode from SAP GUI?
    Thanks in advance,
    Adarsh

    Hi,
    You can check under menu :
    System -> Status -> SAP System Data -> Unicode System -> Yes/ No

  • How to read a Unicode text file in a non-unicode SAP system

    I'm currently has a text file which is saved as UTF-8 format. And inside this file has Thai characters.
    However, my SAP system is a non-unicode system.
    When I use the code
    open dataset DSN for output in TEXT MODE encoding UTF-8
    the thai characters become some funny characters.
    How can I solve this in the ABAP program without changing the system from non-unicode to unicode system?

    Hi Eswar,
       How can I check whether the code page for THAI already installed or not in SAP system?
       Here is the code I use to test to read a file that saved as UTF-8.
    DATA: l_filepath         TYPE string.
    DATA : BEGIN OF l_filepath_str OCCURS 0,
                 comm(1000)  TYPE c,
               END OF l_filepath_str.
    DATA: l_datasetsucc LIKE rlgrap-filename.
    l_filepath = '/BAAC/Files/APP_.txt'.
    OPEN DATASET l_filepath FOR INPUT IN TEXT MODE ENCODING UTF-8.
    IF sy-subrc EQ 0.
      DO.
        CLEAR l_filepath_str.
        READ DATASET l_filepath INTO l_filepath_str.
        IF sy-subrc EQ 0.
          APPEND l_filepath_str.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
    ELSE.
      WRITE:/ 'Error reading from file:', sy-subrc.
    ENDIF.
    CLOSE DATASET l_filepath.
    LOOP AT l_filepath_str.
      WRITE: / l_filepath_str-comm.
    ENDLOOP.
        It returns me a runtime error. Any idea?

  • How to check whether NW2004s-Installation is unicode/non-unicode

    Hi,
    I have to check, whether our NW2004s-Installation (ERP 2005) is a unicode-installation or a non-unicode.
    How can I check it? - the sap-admin I can ask is on holiday.
    Thanks
    Wolfgang

    You can go to the Backend and click on System -> Status, and under SAP System Data you should be able to see Unicode System (Yes or No)...
    Hope this help!
    Regards
    Juan Reyes

  • How will I know my existing DB is in Unicode or Non-Unicode

    I know you will get character set information with following query.
    select PARAMETER, value from nls_database_parameters
    where parameter = 'NLS_CHARACTERSET';
    Result is : WE8MSWIN1252 (My DB is hosted on Windows server 2003 64Bit Machine and created using default parameter)
    My Question is how do I know that WE8MSWIN1252 is unicode- or non-unicode ?
    Thank you for reading.
    Thanks

    Only the values 'AL32UTF8' and 'UTF8' indicate an Unicode encoding if returned by this query. All other character sets are non-Unicode. The query:
    select PARAMETER, value from nls_database_parameters
    where parameter = 'NLS_NCHAR_CHARACTERSET';can also return AL16UTF16, which is Unicode as well, but this character set is valid for NCHAR/NVARCHAR2/NCLOB data types only.
    -- Sergiusz

  • How to Copy a Non-unicode ECC 6.0 SR3 to WIN2008 and MSSQL2008

    Good morning,
    how can I make a homogeneous system copy of my NON-UNICODE ECC 6.0 (Nw 7.0 SR3) to a new machine running Windows  Server 2008 and MSSQL 2008?
    According to OSS note 1152240 to install SR3 on SQL2008 I have to generate and use  a "SR3 modified installation master DVD".
    My problem is that SR3 installation disk doesn't allow non-unicode installations.
    Can I use SR2 installation disk, and modify it the some way I should do with SR3 installation disk?
    Note 1054740 says "SAP products prior to NetWeaver 7.0 SR3 are not supported on Windows Server 2008", but I would
    not run the SR2 system, just perform the installation and copy my "SR3 database" back. This should not be a problem as the
    diference between SR2 and SR3 is at support package level. Is this correct?
    Can the SR2 installation disk be changed in the some way of the SR3 disk, as described on note 1152240, and be used with
    SQL2008?
    Is there any way to move non-unicode ECC 6.0 to WIN2008 + SQL2008?
    Thank you
    Best regards

    Hi,
    If you are copying you can create a NON Unicode system, The installation for NEW systems is only permited for Unicode but if you are using SAPInst for copying your system, then it will ask if you are copying an Unicode system or not and will left it Non Unicode in the Target. So you could copy your system with no problem I´m pretty sure about this because we are running some copies (8 systems) and we have non unicode systems and we are using SR3 master DVD.
    Just do the chages to the master DVD so you could use it on Win2008
    Have a nice day.

  • How to convert Unicode characters to Non-unicode

    Hi! Gurus,
    How can I convert a unicode character into a non-unicode character?
    We have an ABAP program in 4.5B that writes a file with a 15 character fixed length that is passed to another application.  When upgraded into mySAP we encountered issue on the length of the the strings when japanese or chinese character are included in the string, it exceeded the 15 character length.

    Hi,
    Try this link
    [Conversion of Non Unicode to Unicode system]
    Regards,
    Surinder

  • How to start 1 JCO-unicode-Server and 1 JCO-none-unicode-Server

    It is possible to start one JCo-Server that is unicode-able and another one JCo-Server that is not unicode-able in one program?
    I want to share one service that my Java-Program is providing for 2 SAP-Systems. But one SAP-System is a Unicode-System and the other a None-unicode-System.
    I've implemented the tip of the following site for my Unicode-System, but anyhow it does not function:
    http://help.sap.com/saphelp_nw04/helpdata/de/87/b55a4201301453e10000000a155106/content.htm
    If I start the JCo-Server for my Unicode-System first, then the communication for this system will work, but for the other, none-unicode system not.
    If I start the JCo-Server for my None-unicode-System first, then only the communication for the none-unicode system will work.
    Any Ideas??
    Or another question: How can I make the Unicode-System communicate-able with a none-unicode JCo-Server?
    Thanks for reply.

    Hi,
    i've solved my problem: I changed all my JCo-Objects in my program from from version 2.1.8 to 3.0.2.
    After that I don't needed to input information wether it's a unicode-connection or not.

  • How to export & import customer table space from non-unicode to unicode sys

    hello all,
    I have performed a migration of Single code to Unicode system. -
    (ECC 6.0 SR2)
    After completion of export & import i have noticed  there is one customer table space which is missing.
    eg - PSAPABCD
    I have checked in source system & noticed that Table space is created by customer & not maintained properly as required,
    therefore it is not either exported or imported.
    Please advice me how should i manage to export tablespace from Non - unicode system & import in Unicode.
    Is there any work out.
    Thanks & rgds,
    -rahul

    Hi Rahul,
    please have a look at
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f9f37c-be11-2a10-3baf-d5d7de5fb78d
    point 3) f. and g.
    However in order to keep consistency I would highly recommend to export and import all tables at the same time.
    Best regards,
    Nils Buerckel
    SAP AG

  • How to fix "cannot convert between unicode and non-unicode string data types" :/

    Environment: SQL Server 2008 R2
    Introduction:Staging_table is a table where data is being stored from source file. Individual and ind_subject_scores are destination tables.
    Purpose: To load the data from a source file .csv while SSIS define table  fields with 50 varchar, I can still transfer the data to the entity table/ destination and keeping the table definition.
    I'm getting validation error "Cannot convert between a unicode and a non-unicode string data types" for all the columns.
    Please help

    Hi ,
    NVARCHAR = DT_WSTR
    VARCHAR = DT_STR
    Try below links:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ed1caf36-7a62-44c8-9b67-127cb4a7b747/error-on-package-can-not-convert-from-unicode-to-non-unicode-string-type?forum=sqlintegrationservices
    http://social.msdn.microsoft.com/Forums/en-US/eb0d1519-4be3-427d-bd30-ae4004ea9e8d/data-conversion-error-how-to-fix-this
    http://technet.microsoft.com/en-us/library/aa337316(v=sql.105).aspx
    http://social.technet.microsoft.com/wiki/contents/articles/19612.ssis-import-excel-to-table-cannot-convert-between-unicode-and-non-unicode-string-data-types.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

Maybe you are looking for