dcsimg
Servlet charset encoding is not supported
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   rajkumar_jayavel
Posted On:   Wednesday, August 10, 2011 02:29 AM

Hi whenever i ran my following code its working in the standalone application While i am trying in the servlet its showing invalid(?) characters in the output format. Standalone: String temp="Buôn Ma Thuột"; System.out.println("Test Buôn Ma Thuột:"+temp); out put: Test Buôn Ma Thuột:Buôn Ma Thuột Web application: String temp="Buôn Ma Thuột"; System.out.println("Test Buôn Ma Thu?t:"+temp); out put: Test Buôn Ma Thuột:Buôn Ma Thu?t i changed the content type in the two ways a.UTF-8 b.ISO-8859-1 Even though    More>>

Hi whenever i ran my following code its working in the standalone application


While i am trying in the servlet its showing invalid(?) characters in the output format.


Standalone:
String temp="Buôn Ma Thuột";

System.out.println("Test Buôn Ma Thuột:"+temp);



out put:

Test Buôn Ma Thuột:Buôn Ma Thuột


Web application:

String temp="Buôn Ma Thuột";

System.out.println("Test Buôn Ma Thu?t:"+temp);


out put:

Test Buôn Ma Thuột:Buôn Ma Thu?t


i changed the content type in the two ways

a.UTF-8

b.ISO-8859-1

Even though i wont get required output.



Kindly help me.

   <<Less
About | Sitemap | Contact