Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2003 19:40:01 -0700
From:      =?ISO-8859-1?Q?Eric_Hedstr=F6m?= <erich@ucsd.edu>
To:        BoD <BoD@JRAF.org>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Encoding/accents problem
Message-ID:  <3EC5A101.9070807@ucsd.edu>
In-Reply-To: <000501c31c12$cf8e89c0$0200000a@bureau>
References:  <000501c31c12$cf8e89c0$0200000a@bureau>

next in thread | previous in thread | raw e-mail | index | archive | help
What do you get if you run one of the .class files that works (e.g. 
compiled with /usr/local/jdk1.3.1/bin/javac) and run it with the other VMs?

You may also have to set your local environment to make sure it is set 
to use ISO8859-1 or -15, to make sure the VMs don't default to 7-bit 
US-ASCII.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/using-localization.html

hope this helps,
Eric

BoD wrote:

> Hi!
> I'm having encoding/accents problems with some of the Java JDKs.
> 
> I have this simple program:
> 
> 
> 
> class Test
> {
>         public static void main(String[] av) throws Exception
>         {
>                 System.out.println("é");
>         }
> }
> 
> (that's a e with acute accent, used in french)
> 
> Now look at this different results:
> 
> -----
> 
> $ /usr/local/jdk1.3.1/bin/java -version
> java version "1.3.1-p7"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.3.1-p7-bod-021102-00:40)
> Classic VM (build 1.3.1-p7-bod-021102-00:40, green threads, nojit)
> 
> $ /usr/local/jdk1.3.1/bin/javac Test.java && /usr/local/jdk1.3.1/bin/java
> Test
> é
> 
> -----
> 
> $ /usr/local/linux-sun-jdk1.3.1/bin/java -version
> java version "1.3.1_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
> Classic VM (build 1.3.1_04-b02, green threads, nojit)
> 
> $ /usr/local/linux-sun-jdk1.3.1/bin/javac Test.java &&
> /usr/local/linux-sun-jdk1.3.1/bin/java Test
> é
> 
> -----
> 
> $ /usr/local/linux-sun-jdk1.4.1/bin/java -version
> java version "1.4.1_01"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
> Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
> 
> $ /usr/local/linux-sun-jdk1.4.1/bin/javac Test.java &&
> /usr/local/linux-sun-jdk1.4.1/bin/java Test
> ?
> 
> (that's a question mark)
> -----
> 
> $ /usr/local/linux-blackdown-jdk1.4.1/bin/java -version
> java version "1.4.1"
> Java(TM) 2 Runtime Environment, Standard Edition (build
> Blackdown-1.4.1-beta)
> Java HotSpot(TM) Client VM (build Blackdown-1.4.1-beta, mixed mode)
> 
> $ /usr/local/linux-blackdown-jdk1.4.1/bin/javac Test.java &&
> /usr/local/linux-blackdown-jdk1.4.1/bin/java Test
> ?
> 
> (question mark again)
> -----
> 
> $ /usr/local/linux-ibm-jdk1.4.0/bin/java -version
> java version "1.4.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
> Classic VM (build 1.4.0, J2RE 1.4.0 IBM build cxia32140-20020917a (JIT
> enabled: jitc))
> 
> $ /usr/local/linux-ibm-jdk1.4.0/bin/javac Test.java &&
> /usr/local/linux-ibm-jdk1.4.0/bin/java Test
> é
> 
> -----
> 
> Unfortunatelly I could not try the 1.4 "from sun sources" version as I have
> 4.7-RELEASE and the port said it needed a 4.8-STABLE at least.
> Now I need 1.4, so I could stay with ibm's one, but unfortunatelly jetty
> doesn't seem to work with it at all (just says nothing when I start it...)
> 
> Thank you very much for your help !
> 
> Do I have to subscribe to a list to see the replies ?
> 
> Thanks,
> 
> BoD
> 
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EC5A101.9070807>