Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HttpServletResponse encoding problem @ WebSphere 6.1

807580Mar 14 2010 — edited Mar 15 2010
Hi All,

My application is working fine with JBOSS 4.2.2 application server. However when I deploy same application at WebSphere 6.1. I get HttpServletResponse encoding problem.
I am getting response on web browser as shown below:-
&#65533;&#65533;][s&#65533;8&#65533;~N&#65533;&#65533;0&#1818;uRY&#65533;d;&#65533;H&#1685;e&#65533;&#65533;e&#1614;&#65533;d6&#65533;%&#65533;&#65533;&#260;"yH&#1078;&#65533;&#65533;&#65533;&#65533;&#1272;&#65533;&#65533;M&#65533;&#65533;x&#65533;&#65533; &#65533;&#65533;&A&#65533;&#65533;h&#65533;&#65533;ntCT&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;UM&#65533;&#65533;BW&#65533;&#65533;&#1018;H&#65533;T&#65533;4&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;t&#65533;?G&#65533;f =l&#65533;&5[&#65533;j&#65533;B{&#65533;&#65533;&#65533;6&#65533;&#65533;&#1903;V&#65533;&#65533;&#65533;6&#65533;&#65533;&#65533;7&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;(&#65533;&#65533;&#65533;5&#65533;4&#65533;&#65533;&#65533;&#2044;.&#65533;!&#65533;&#65533;&#65533;&#65533;j&#65533;&#65533;i&#65533;V&#65533;&#65533;&#65533;&#65533;&#65533; X&#65533;Q&#65533;&#65533;^<&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;sK&#65533;&#65533;&#65533;&#65533;h&#65533;{y1&#65533;] [&#65533;&#65533;T&#444;&#65533;-
&#65533;Dm&#65533;_&#65533;7&#65533;&#65533;&#65533;&#65533;P&#65533;&#65533;<*&#65533;&#65533;VvQ&#65533;:6&#65533;KCc&#65533; 6&#65533;]&#65533;&#65533;&#65533;&#65533;V_&#65533;zPC&#65533;c&#65533;&#65533;&#65533;Ÿ&#65533;&#65533;&#65533;z>sW&#65533;&#65533;&#65533;&#65533;_y&#65533;*&#65533;&#65533;&#65533;2&#65533; &#65533;&#65533;)&#65533;r&#65533;~&#65533;&#315;%^&#65533;M&#65533;&#65533;&#1981;kz&#271;uY&#65533;&#39624;BW4&#65533; &#65533;.&#65533;&#65533;&#65533;&#65533;&#65533;V&#65533;&#65533;&#65533;&#65533;{>&#65533;&#65533;O&#65533;&#12990;&#65533;&#65533;/&#65533;l&#65533;ii8&#65533;S&#459;Q&#65533;cJ&#65533;56GAogp&#65533;w&#65533;&#65533;&#65533;7'&#65533;&#65533;9vf&#65533;&#65533;&#65533;E&#65533;,&#65533;&#65533;&#65533;
9&#65533;q&#65533;x&#65533;&#65533;&#65533;z&#65533;H&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;?;&#65533;&#65533;&#65533;&#65533;4&#65533;&#65533; &#65533;5&#65533;&#65533;`&#65533;&#65533;&#65533;iWF&#65533;&#65533;l&#765;&#65533;&#65533;?o^&#65533;&#65533;Fy&#65533;|&#65533;d&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;zMa,&#65533;&#65533;&#65533;&#65533;y&#65533;&#65533;e \<&#65533;J&#65533;&#65533;&#65533;M&#65533;:miz&#65533;&#65533;&#65533;&#65533;z&#65533;Z5&#65533;&#65533;&#65533;&#65533;&#65533;&#1111;&#1053;^/&#65533;&#65533;&#65533;e&#65533;:&#65533;j7&#65533;&#65533;'&#65533;&#65533;~&#65533;@&#65533;V&#65533;V&#870;&#65533;&#65533;nN&#65533;&&#65533;&#65533;Q%}(&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;*u&#65533;&#65533;&#65533;#&#65533;&#65533;&#65533;S&#65533;BO&#65533;&#65533;Lð&#65533;&#65533;&#65533;&#65533;+&#65533;&#65533;x&#65533;8&#65533;/&#65533;E&#65533;&#65533;&#65533;&#596;&#65533;&#65533;6_k&#65533;1)&#65533;@q. &#65533;S%&#65533;&#65533;5&#65533;=&#65533;$&#65533;CSBt&#65533;c &#65533;&#65533;&#65533;&#65533;+hX&#65533;&#65533;2&#65533;>t&#65533;s&#65533;+&#65533;M&#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533; `&#65533;nv$&#65533;&#65533;13m&#1255;>&#65533;&#65533;{code}

I would like to mentioned that this encoding problem is not arise when I have less data (or HTML element). Means even at WebSphere, It is working fine when there are up to approximately 300 HTML element are render. When HTML elements over than certain number then web page is shown with  encoded form.
Moreover at Jboss 4.2.2 application is working fine up to long -long html element.
I set content type as:
{code}<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> {code}
This issue is reproducible at FF 3.6 and IE 7 and 8 browser.

Can anyone help me out?  Am I missing some setting?

Thanks

Edited by: SatyendraKPatel on Mar 14, 2010 7:13 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2010
Added on Mar 14 2010
1 comment
256 views