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
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
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
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
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();
System.out.println("Byte1: " + by[0]);
}
spanLabel = newString(by, "ISO-8859-1");
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
... 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
---