Encoding/accents problem
Eric Hedström
erich at ucsd.edu
Fri May 16 19:41:00 PDT 2003
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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"
More information about the freebsd-java
mailing list