From owner-freebsd-java@FreeBSD.ORG Fri May 16 19:41:00 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E5D937B401 for ; Fri, 16 May 2003 19:41:00 -0700 (PDT) Received: from palomar.yi.org (user-10cm1j3.cable.mindspring.com [64.203.6.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99B2343F75 for ; Fri, 16 May 2003 19:40:59 -0700 (PDT) (envelope-from erich@ucsd.edu) Received: from ucsd.edu (soledad [192.168.123.250]) by palomar.yi.org (8.12.8p1/8.12.8) with ESMTP id h4H2NRTG017431; Fri, 16 May 2003 19:23:27 -0700 (PDT) (envelope-from erich@ucsd.edu) Message-ID: <3EC5A101.9070807@ucsd.edu> Date: Fri, 16 May 2003 19:40:01 -0700 From: =?ISO-8859-1?Q?Eric_Hedstr=F6m?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030401 X-Accept-Language: en-us, en MIME-Version: 1.0 To: BoD References: <000501c31c12$cf8e89c0$0200000a@bureau> In-Reply-To: <000501c31c12$cf8e89c0$0200000a@bureau> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-java@freebsd.org Subject: Re: Encoding/accents problem X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2003 02:41:00 -0000 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"