File encoding problem in solaris sparc

hi there,
I wrote a simple program to create a text file that with the content of japanese character that same way I wrote in Windows JP Platform.
However, the encoding is different from what window, oracle(solaris sparc) does.
this is very interesting that we view from oracle and its workd fine from Oracle which run on the same machine(solaris Sparc) .
I believe I missed out some setting for the internationalization for JDK in solaris, but I'm not familiar with solaris. Hence, I would like to seek is there one of you came across this before? Please help.
Here is the String.
\u6771\u9999\u91CC\u5357\u753A�T�W�|�T�|�P�O�P
Please note that 58-5-101 is double full width JP character.
The main problem is the "-" encoding for solaris. It changed to '?'
My env are,
-jdk1.3.1_03
-Solaris Sparc LANG=ja
pls feel fre to ask for more information if you need further details.
regards,
elvis
scjp

I don't fully understand what you're asking for, but I wonder if this might help : the default encoding of a Solaris machine is probably EUC (In Windows, this is SJIS). So you'll probably have to read the file using the EUC encoding. Have a look at InputStreamReader(InputStream in, String enc) where you can set the encoding of the input stream.
(Note that there is also a forum called 'Internationalization' at java.sun.com)

Similar Messages

  • Encoding Problem in solaris

    I generated a document in a solaris machine which follows the encoding scheme "ISO-8859-1". This document contains symbols such as British currency pound symbols.
    Now, I am passing this document as an input to my application. My application runs on another machine which follows "US-ASCII 7bit" encoding scheme. Here, the input file undergoes some processing by my application and when I see the file now, the British currency pound symbols is converted to question marks.
    To stop this, can I use the -Dfile.encoding option as
    java -Dfile.encoding=ISO-8859-1 -classpath.......
    Is the format right? will I get any problem changing the format? once I complete running my application will the encoding scheme revert back to the the default one?
    Thanks
    Shiv

    That should be fine but you should avoid setting file.encoding for reading only one file. What will you do when your program grows and needs to communicate with the system using the system's own default character encoding? It's better to set the encoding in the program itself, like this:final String ENCODING = "ISO-8859-1";
    Reader in = new InputStreamReader(new FileInputStream(file), ENCODING);The encoding does not have to be hardcoded, instead you could use System.getProperty("my.program.encoding", "ISO-8859-1") or what ever.

  • ISW Installation problem on Solaris SPARC

    We are currently running JES4 directory server version 5.2 patch 5.
    We wanted to test a JES5 installation so we could install Identity
    Synchronization for Windows (ISW) and see if it would resolve the
    problem we have keeping our Directory Server (JES4) and Active
    Directory (AD) servers synchronized.
    We did a clean install of JES5 with Directory Server 6.2. Prior to the
    installation of ISW, we migrated the data from our production JES4
    system and loaded that data into the newly installed and configured
    JES5 system. That all went fine.
    Then we then tried installing ISW, but the installation failed during the
    portion of the install process where the administration server is
    installed.
    Has anyone seen this problem, or can you tell us any gotchas?

    The Solaris*.bin file should have unpacked everything and installed all the JDK in a directory off of the directory where you ran the .bin file. Inside this subdirectory will be a bin subdirectory where the java executables, etc are installed.

  • Utf-8 encoding problem on solaris

    Hello all.
    I am using weblogic 9.2 and I am facing a very weird problem regarding the encoding. I fetch data from the db (informix btw) and I forward data as utf-8 to jsps. I have set up everything succesfully on my web.xml, weblogic.xml and all jsps include the page directive for utf-8. When I deploy my application on windows 2k machine everything goes smooth. But when the deployment happens on a solaris machine my jsps show "?" instead of letters. Has anyone faced this problem before? Could you plz direct me towards a solution because this thing has taken me days and days and I still haven't managed to find a solution
    Thanx in advance
    axel

    Hi,
    Start the app, and hook an Eclipse debug project to it. Check if the enconding problem is while retrieving from the DB or while generating the response. If the issue is on the DB, you may need to define the enconding on the connection (I am not sure what driver you are using, but should be able to check this out.) If the issue is while generating the response, just XML escape every character.
    Regards,
    LG

  • Perl/DB_File file-access problems on Solaris 86

    I have Perl software that runs fine on Apache/FreeBSD using DB_File. I have
    just ported that software to an Apache/Solaris 86 server, and the DB_File
    file-access is not working.
    Specifically it breaks down at the tie statement - where I am trying to tie
    to an existing DB_BTREE file - saying things like "Cannot tie to file
    because it already exists". Which sounds like a file access mode problem.
    I use O_CREAT|O_RDWR as the file access mode parameter, asking the tie
    function to create the file if it does not exist or to open it on a
    read/write basis if it does. I 'use Fcntl' to set the mode parameters that
    are (supposedly) correct for the system.
    Any help or suggestions?
    Many thanks

    There are a few things possibly going on:
    1. The problem where the Berkeley DB example is not being found is related
    to the default tar program on Solaris, which doesn't handle long file names.
    The result is that some files don't make it. The simplest solution is to use
    a gnu tar if you can.
    2. The Compiler issue in Xerces may be that the default compiler found is the
    Solaris compiler, and not g++/gcc if that's what you want. The compiler can be
    specified using the -c <C compiler> and -x <C++ compiler> flags to buildall.sh.
    e.g. buildall.sh <other options> -c gcc -x g++
    Regards,
    George

  • Oracle 10gR2 installation problem on Solaris (sparc-64 bit)

    Hi All,
    I am unable to install Oracle 10gR2 on Solaris, I cannot understand what is wrong could u anybody help me that,
    Regards
    Harpreet Singh

    I also have a similar problem, when I insert the key in my car sometimes it does not start. I cannot understand what is wrong could you help me?
    Otherwise, It's been raining lately and our crystal ball's are somewhat foggy; therefore we cannot guess what is you problem.

  • Java installation problem on solaris sparc v2.7

    Hi
    Iam new born baby to solaris .I have installed
    java1.2.2 on solaris by using Solaris_JDK_1.2.2
    _06.bin .I dont whether java1.2 is installed on
    solaris machine or not .I think Solaris*.bin is the
    executable file for unix .I simply gave the command
    Is there any other way to check whether it is installed
    properly or not .
    Please help me [email protected]
    thanks in advance
    bala

    The Solaris*.bin file should have unpacked everything and installed all the JDK in a directory off of the directory where you ran the .bin file. Inside this subdirectory will be a bin subdirectory where the java executables, etc are installed.

  • Where is the javaws.jar file for Java8 in Solaris Sparc OS?

    javaws.jar file used to be located under 1.7.0_72/jre/lib, but after I installed Java 8, I could not find it in the corresponding 1.8.0_31/jre/lib. I checked .gz file downloaded from Oracle and it does not contain the jar file either. Does anyone know what is going on? Thanks, …

    Thanks, but it is not there.
    I only have the following:
    com.bea.core.jsmpool_1.7.0.0.jar
    javax.jms_1.1.1.jar
    org.springframework.spring-jms_2.5.6.jar
    And if I cannot find it there, where could it be?
    Thanks!

  • DNS PRoblem in SOLARIS 9.0

    Hi
    can any one help me on this
    I am facing dns problem in solaris sparc 9.0. I am not able to see
    " /etc/named.conf" .If i type in.named -v it is showing BIND version .is it required to install bind seprately.
    I downloaded BIND from sunfreeware i tried to compile but it is throghing the error something like "make cannot build" after running "./confiugre"
    One more query is it possible to install dns and nis server in same solaris box .
    could any one guide me how to setup the DNS server and how to configure
    Thanks
    SolarisTeam

    Hi
    Thanks for the reply,
    It is working fine with the upgraded version of Weblogic 9.0 from weblogic 8.1. But not with the fresh installation of Weblogic 9.0.
    Thanks,
    Raj

  • File encoding cp1252 problem

    Hi there,
    I have a problem concerning the file encoding in a web application.
    I'll sketch the problem for you.
    I'm working on adjustments and bug fixes of an e-mail archive at the company i work for. With this archive, users can search e-mails using a Struts 1.0 / JSP web application, read them, and send them back to their mail inbox.
    Recently a bug has appeared, concerning character sets.
    We have mails with french characters or other uncommon characters in it.
    Like the following mail:
    Subject: Test E-mail archief co�rdinatie Els
    Content: Test co�rdinatie r�d�marrage ... test weird characters � � �
    In the web application itself, everything is fine...but when i send this mail back to my inbox, the subject gets all messed up:
    =?ANSI_X3.4-1968?Q?EMAILARCHIVE_*20060419007419*_Tes?=
    =?ANSI_X3.4-1968?Q?t_E-maill_archief_co=3Frdinatie_Els?=
    The content appears to be fine.
    We discovered this problem recently, and a lot of effort and searching has been done to solve it.
    Our solution was to put the following line in catalina.sh , with what our Tomcat 4.1 webserver starts.
    CATALINA_OPTS="-server -Dfile.encoding=cp1252"
    On my Local Win2K computer, the encoding didn't pose a problem, so catalina.sh wasn't changed. It was only a problem (during testing) on our Linux test server ... a VMWare server which is a copy of our production environment.
    On the VMWare, i added the line to the catalina.sh file. And it worked fine.
    Problem Solved !
    Yesterday, we were putting the archive in production. On our production server ... BANG --> NullPointerException.
    We thought it has something to do with jars he couldn't find, older jars, cache of tomcat ... but none of this solved the problem.
    We put the old version back into production, but the same NullPointerException occured.
    We then put the "CATALINA_OPTS="-server -Dfile.encoding=cp1252" " line in comment ... and then it worked again.
    We put the new version into production (without the file encoding line), and it worked perfectly, except for those weird ANSI characters.
    Anyone have any experience with this?
    I use that same file encoding to start a batch, but there i call it Cp1252 (with a capital C) ... might that be the problem? But i have to be sure...because the problem doesn't occur in the test environment, and i can't just test in production ... and switch off the server whenever i'd like to.
    Does anyone see if making cp1252 --> Cp1252 might be a solution, or does anyone have another solution?
    Thanks in advance.

    First, I will start by saying that JInitiator was not intended to run on Win7, especially 64bit. So, it may be time to think about moving to the Java Plugin. Preferably one which is certified with your Forms version.
    To your issue, I suspect you need to change the "Region and Language" settings on the client machine. This can be found on the Control Panel. If that doesn't help, take a look at this:
    http://stackoverflow.com/questions/4850557/convert-string-from-codepage-1252-to-1250

  • Problem with file.encoding in Linux

    Hello,
    I am currently migrating a java project from Windows to Linux. The project is finally shaping up now, except for some encoding problems.
    All configuration files are saved in ISO-8859-1/Cp1252 format. When reading and displaying these files in Swing (e.g. JTextArea), the special characters ���� are displayed wrong. I have tried to start the VM with -Dfile.encoding=ISO-8859-1 and -Dfile.encoding=Cp1252 without success (this is done in Eclipse under Linux).
    I then tried the opposite. I created some UTF-8 files, started the application under Windows/Eclipse, read the files and displayed them in a JTextArea. Garbage characters were shown instead of ���� (as expected). I then used -Dfile.encoding=UTF-8, and voila, all characters were displayed correctly.
    Why does not -Dfile.encoding work for ISO-8859-1/Linux but -Dfile.encoding work for UTF-8/Windows? Anyone here know?
    The JRE I have been using is 1.4.2_06.
    The Linux is a SuSE 10.0

    Continue the "discussion" here:
    http://forum.java.sun.com/thread.jspa?threadID=737153

  • Encoding problem after File Content Conversion

    Hi SAP gurus!
    we're about exporting debitor data via PI into CSV files. Therefore we use a mapping to an intermediate structure. In the receiver file adapter a file content conversion is done into the target CSV format.
    We have a lot of data with eastern europe characters. Right after the mapping, everything is fine. All characters are processed correctly. After the file content conversion, the files written on the target system contain "?" instead of the special characters.
    Does anybody have any hint to fix this problem? We already tried to change the "file.encoding" parameter, but hasn't helped.
    Thanks in advance for your support!
    Cheers,
    Matthias

    Hello Satish,
    thanks for your reply.
    First, I have to explain, that the sender side isn't done by file adapter but IDoc adapter. So I cannot change the encoding on sender side.
    Both on IDoc and file side, the data is ok. Only when inserting the file content converion, the files become corrupted.
    Without using the FCC, tjhe target files are stored as UTF-8. When using FCC the files are stored as ANSI. (I tested this by opening the files in notepad and performing "Save As")
    Do you have further ideas?
    Cheers,
    Matthias

  • Problem with file.encoding system property

    Hi all
    I develop a web application with Tomcat app server.
    I have to set file.encoding system property to "Cp1252", but when I set it programatically using System.setProperty("file.encoding","Cp1252") it doesnt affect to my program outcome but when I put it in catalina.bat with set JAVA_OPTS=-Dfile.encoding=Cp1252 it works fine.
    what is the differences and why I cant change that property programatically?
    thanks

    why I cant change that property programatically?It is a system property reflecting the initial settings read when the JVM started. Resetting the system property java.home will not change your home directory either.

  • Content Server 6.0  Installation problem on Solaris

    When I installed Content_Server_6.0_SP1_solaris_oracle on Solaris 10 ,I get the following error in log file.
    dbg Bundled JRE is not binary compatible with host OS/Arch or it is corrupt. Testing bundled JRE failed.
    How can I resolve it
    please help me.
    Regards
    Sandeep

    If I installed any installer for sparc Machine on x86.is there any problem.My Solaris machine is x86.
    thanx.
    Regards
    Sandeep.

  • Java installation problem on solaris

    Hi
    IAm a new born baby to solaris .I have installed
    java on solaris sparc machine 2.7 by using Solaris_JDK_1.2.2_sparc.bin.
    If i have done anything wrong ,Please correct me .My problem is :
    i have to include the rt.jar file in the classpath bcoz it contains all
    the class files .Then iam running command javac Test.java .Then i got error
    message as segmentation violation error and abort core dumped .I dont why i got this error .Please help me as soon possible .My email id is
    [email protected] .
    Thanks in advance
    bala

    The Solaris*.bin file should have unpacked everything and installed all the JDK in a directory off of the directory where you ran the .bin file. Inside this subdirectory will be a bin subdirectory where the java executables, etc are installed.

Maybe you are looking for