Character encoding issues?
Posted
by
Santosh
on Stack Overflow
See other posts from Stack Overflow
or by Santosh
Published on 2012-07-06T13:55:48Z
Indexed on
2012/07/06
15:15 UTC
Read the original article
Hit count: 214
java
|character-encoding
We had a a clob column in DB. Now when we extract this clob and try to display it (plain text not html), it prints junk some characters on html screen. The character when directly streamed to a file looks like ”
(not the usual double quote on regular keyboard)
One more observation:
System.out.println("”".getBytes()[0]);
prints -108
.
Why a character byte should be in negative range ? Is there any way to display it correctly on a html screen ?
© Stack Overflow or respective owner