[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOM wrappers and UTF-8 encoding



One last thing to check. You say the html file generated has funny
characters. I am assuming you mean the html source. If the html source
has the funny characters, then the jsp is trying to decode the UTF-8. If
the html source has the original 〹, then the decode is happening
in the browser. 

In the first case, I read somewhere that you can set the character
coding at run time using an option ( probably -D<name>=<value> ) for a
java executable. Your jsp container MIGHT have the same option. If not,
you may be out of luck or may need to change to a different jsp
container.

In the second case, you will need to change a browser preference, the
character encoding. Check your browser help file.

Ed.

Poorav Chaudhari wrote:
> 
> thanks for getting back with this again, .....
> 
> the decoding is being done in the browser. After i read the value
> using getNodeValue, (at the moment i am simply trying to print it on
> the browser using out.println. basically it is a jsp. so i am running
> it throught a browser. the html file generated has funny characters.
> if you want i can send you the xml file i am reading with the jsp, if
> that is not too much of a bother.
> 
> thanks
> 
> poorav
> 
> ----------------------------------------------------------------------
> Do You Yahoo!?
> Listen to your Yahoo! Mail messages from any phone with Yahoo! by
> Phone.