• Post Reply Bookmark Topic Watch Topic
  • New Topic

Clearing charset in response header  RSS feed

 
Mark Jones
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Got the following piece of code that worked with Tomcat 4.1.18 and now doesn't do what I want in 4.1.29. I am trying to clear the charset (I am working on an IP Phone) and I keep getting the charset set to ISO-8859-1 when I in fact want it blank. Can I clear a charset? The code below used to work but now doesn't :-

<%response.reset();
response.setContentType("text/xml");
response.setHeader("charset","");
response.resetBuffer();%>;

Any ideas?

Thanks
Mark
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Mark J",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!