Re: Urgent :character encoding problem

2002-11-15 Thread susy pfeiffer
Thanks a lot. - Original Message - From: "Joseph Kesselman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 7:23 PM Subject: Re: Urgent :character encoding problem > XML does not automatically define the entity ©. Your docume

Re: Urgent :character encoding problem

2002-11-15 Thread Joseph Kesselman
XML does not automatically define the entity ©. Your document's Doctype can do so (internally or via an external DTD file), but unless that's done © has no meaning. © works in HTML because HTML's DTD *does* define it. __ Joe Kesselman / IBM Research ---

Urgent :character encoding problem

2002-11-15 Thread susy pfeiffer
Hi all,   if I send an xml doc with the iso8859-1 encoding and quote extended chars with e.g. #&169; everything works fine with the sax parser. I have read in the specs that it also works with the name e.g. © but it doesn't seem to work.   What am I doing wrong here ? can anyone help   than

Re: Character encoding

2001-07-16 Thread Willy Ching
lay correctly > as ¿ though. > > And if I create the String as follow: > > spanLabel = new String(by, "UTF8"); > > The display menu has a non_printable character as the first character. > > Thanks, > Flora > > "Glenn Marcy" <[EMAIL PROTECTED

Re: Character encoding

2001-07-16 Thread ffan
Flora "Glenn Marcy" <[EMAIL PROTECTED]> on 07/16/2001 05:07:10 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Flora O. Fan/Telcordia) Subject: Re: Character encoding Is your document really encoded in UTF-8 or ISO-8859-1 ? Judging from

Re: Character encoding

2001-07-16 Thread Glenn Marcy
Is your document really encoded in UTF-8 or ISO-8859-1 ? Judging from what you pasted into the e-mail message, I am (again) guessing that the encoding declaration of your document is incorrect and that you want to use: Regards, Glenn I have similar problem as John's, but that is Spanish ve

RE: Character encoding

2001-07-16 Thread Graham, John
5 PM To: [EMAIL PROTECTED] Subject: Re: Character encoding I have similar problem as John's, but that is Spanish version. When I call String label = node.getAttribute("Label"); try{ byte[] by = label.getBytes(); Syste

Re: Character encoding

2001-07-16 Thread ffan
'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc:(bcc: Flora O. Fan/Telcordia) Subject: Character encoding Hi, I am having a problem retrieving the proper bytes from an text element. I have narrowed the problem down to a simple example. For example, the document: èàèà

RE: Character encoding

2001-07-16 Thread Graham, John
Great! Thank you Glenn! That was the problem. Can you tell that Java is not my native language? ;-) -Original Message- From: Glenn Marcy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 4:12 PM To: [EMAIL PROTECTED] Subject: Re: Character encoding ... When the bytes of the

Re: Character encoding

2001-07-16 Thread Glenn Marcy
... When the bytes of the returned String are dumped, I get (hex) E8 for e-accent and E0 for a-accent. Just a guess... Are you using getBytes() or getBytes("UTF8") ? The former will return the bytes using the "8859_1" encoding (ISO-Latin-1), not UTF-8, on most systems. Regards, Glenn ---

Character encoding

2001-07-16 Thread Graham, John
Hi, I am having a problem retrieving the proper bytes from an text element. I have narrowed the problem down to a simple example. For example, the document: èàèà is read in from a disk file, and the bytes are dumped. (In case the accented character sequence does not appear correctly,