Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes character encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "character encoding" Watch "character encoding" New topic
Author

character encoding

qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
Hello everyone!
can anyone tell me if I can set character encoding when I build xml document by document object.because the default value is utf-8,I want to set it in "GBK".How can I do it?


Thanks...qingwu<br />When I open my eyes,I see your pretty face.
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
did you tried this method setEncoding(..)


Spritle Software Blogs
qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
Thanks,Balaji
qingwu wang
Ranch Hand

Joined: Feb 19, 2003
Posts: 147
my dom level 2 has no setEncoding method,if using Jbuilder7,I will how to change lib.
 
jQuery in Action, 2nd edition
 
subject: character encoding