Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsupportedEncodingException: Cp1256

 
M Raghid Sandouq
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i have developed a web site in JAVA, and i was testing it on tomcat 5.0.24, when finished i have uploaded it to the ISP server, tomcat version is 5.0.19 when i tried to browse the JSP page i got this error:
java.io.UnsupportedEncodingException: Cp1256

i have noticed that tomcat server does not support these lines

response.setContentType("text/html; charset=windows-1256");
request.setCharacterEncoding("windows-1256");

is there any solution to solve this problem...

thanks a lot...
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"MRS" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!