From fadushin@syr.edu  Thu Dec  7 21:01:24 2000
Received: from mailroom.ecs.syr.edu (ecs.syr.edu [128.230.208.14])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id VAA02506
	for <prolog@swi.psy.uva.nl>; Thu, 7 Dec 2000 21:01:24 +0100 (MET)
Received: from apollo.ecs.syr.edu (apollo.ecs.syr.edu [128.230.208.46])
	by mailroom.ecs.syr.edu (8.10.2/8.10.2) with ESMTP id eB7K1ZY15984;
	Thu, 7 Dec 2000 15:01:35 -0500 (EST)
Date: Thu, 7 Dec 2000 15:01:34 -0500 (EST)
From: Fred Dushin <fadushin@syr.edu>
X-Sender: fadushin@apollo.ecs.syr.edu
Reply-To: fadushin@syr.edu
To: Recipients of SWI-Prolog Mailing List <prolog@swi.psy.uva.nl>
cc: jpl-user@lists.sourceforge.net
Subject: Re: swi jpl character coding
Message-ID: <Pine.SOL.4.10.10012071430490.29331-100000@apollo.ecs.syr.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by swi.psy.uva.nl id VAA02506

> Hi,
> 
> i use jpl-1.0.1 together with 3.4.2. In my Prolog Demo i use some
> german "Umlaute" like ÄÖÜöäüß.
> All these characters are mapped to ASCII 128 on the Java side.
> 
> What can i do?

Are you using umlautes in atoms or strings?  And I assume this is in
your Prolog code, yes?

Converting from Prolog to Java, a char array is obtained from
the FLI PL_get_atom_chars function, which returns char *, which in turn
is converted to a Java String using NewStringUTF.

I guess I see two opportunities for things to go awry; either the
PL_get_atom_chars is just returning the high order byte of the umluate
char, or the NewStringUTF is not respecting the UTF encoding.

Jan, how are atoms encoded in the prolog vm?  As UTF?

-- 
Fred Dushin <fadushin@syr.edu>

vi rulse!^H^H^Hes!
`:wq

