When you use 'getBytes()' it uses a default encoding, which probably doesn't support your character. If you use getBytes("UTF8") you will get a string that may look a little odd, but it will represent all the characters, without mapping any to '?'.
Chris -----Original Message----- From: Felix Planjer [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 07:33 To: [EMAIL PROTECTED] Subject: Re: Special characters as question marks? I could be wrong, but I've tested it and am fairly sure the string contains '?'. If I output: comp.getNodeValue().getBytes()[0] it has the value 63, which is the byte value of an '?' > > > > > Are you sure the string contains the '?' character, rather than the > tool you're using to display that character displaying it as '?'...? > The former would be hard to explain; the latter is a fairly common problem. > > ______________________________________ > Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more. > "The world changed profoundly and unpredictably the day Tim Berners > Lee got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]