Have you tried explicitly setting the encoding to UTF-8?

Another problem may be in your Java code.  I had this issue a while ago when
reading in characters using a character stream (as opposed to a byte
stream).  The JRE wants to convert all input in a character stream into some
default encoding and when it cannot determine the value of a byte, it
replaces it with a question mark (?).

By changing the input streams into byte streams (a little annoying
sometimes, I know), I was able to preserve any characters coming in that did
not fit nicely into Java's default encoding.

Hope this helps.

Brion Swanson

-----Original Message-----
From: Dr A.C. Marshall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 30, 2002 9:43 AM
To: [EMAIL PROTECTED]
Subject:   entity appears as ?


Dear Esteemed collegues,

I have been using java servlets / xerces / jserv for a while now. We
recently switched over to tomcat and have one very odd problem - connected
with references to   (which is defined in an entity file as  ) .
Under jserv things worked fine - under tonmcat, xerces substitutes
a ? whenever it encounters a    That is to say the characters()
method of the document handler has a ? in the string where the  
should be.

I have tried other parsers, eg, aelfred, and get the same effect. Now I
guess the change is related to us now using jdk 1.4 rather than the
switch to tomcat. I have tried generating 1.1, 1.2, 1.3 and 1.4 target
code but still get the ?'s!

I'm sure this is a very simple problem .... but what is the solution?

Adam Marshall
-- 
   Dr AC Marshall ([EMAIL PROTECTED]). LUSID System Programmer,
   Centre for Lifelong Learning, University of Liverpool.

   Cheese of the Millenium: Quejo con Piri Piri

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<<application/ms-tnef>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to