<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Building J2EE Web Applications with UTF-8 Support</title>
	<atom:link href="http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/</link>
	<description>Philip Jacob's web page</description>
	<lastBuildDate>Fri, 15 Jan 2010 12:36:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sayid navas</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-169159</link>
		<dc:creator>sayid navas</dc:creator>
		<pubDate>Fri, 15 Jan 2010 12:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-169159</guid>
		<description>Sir

 I have same issue

I am using struts2 , java ,mysql,hibernate 3

and i put UTF-8 in my jsp pages 

but at the action class , the data  seems like  à´°à´•à´ 

i used a filter 

package com.bandmis.filters;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.UnavailableException;



public class SetCharacterEncodingFilter implements Filter {


    
    protected String encoding = &quot;UTF-8&quot;;


protected FilterConfig filterConfig = null;

    /
    protected boolean ignore = false;



    
    public void destroy() {
        this.encoding = null;
        this.filterConfig = null;
    }

    
    public void doFilter(ServletRequest request, ServletResponse response,
                         FilterChain chain)
        throws IOException, ServletException {

       
        if (ignore &#124;&#124; (request.getCharacterEncoding() == null)) {
            String encoding = selectEncoding(request);
            if (encoding != null)
                request.setCharacterEncoding(encoding);
        }
        if (ignore &#124;&#124; (response.getCharacterEncoding() == null)) {
            String encoding = selectEncoding(response);
            if (encoding != null)
                response.setCharacterEncoding(encoding);
        }

       
        chain.doFilter(request, response);
    }

   
    public void init(FilterConfig filterConfig) throws ServletException {
        this.filterConfig = filterConfig;
        this.encoding = filterConfig.getInitParameter(&quot;encoding&quot;);
        String value = filterConfig.getInitParameter(&quot;ignore&quot;);
        if (value == null)
            this.ignore = true;
        else if (value.equalsIgnoreCase(&quot;true&quot;))
            this.ignore = true;
        else if (value.equalsIgnoreCase(&quot;yes&quot;))
            this.ignore = true;
        else
            this.ignore = false;
    }


protected String selectEncoding(ServletRequest request) {
return (this.encoding);
}
protected String selectEncoding(ServletResponse response) {
	return (this.encoding);
	}
}



 i think there is missing of character encoding ....i dont know hw to solve this issue
hw i can solve this issue..........Please help me</description>
		<content:encoded><![CDATA[<p>Sir</p>
<p> I have same issue</p>
<p>I am using struts2 , java ,mysql,hibernate 3</p>
<p>and i put UTF-8 in my jsp pages </p>
<p>but at the action class , the data  seems like  à´°à´•à´ </p>
<p>i used a filter </p>
<p>package com.bandmis.filters;</p>
<p>import java.io.IOException;</p>
<p>import javax.servlet.Filter;<br />
import javax.servlet.FilterChain;<br />
import javax.servlet.FilterConfig;<br />
import javax.servlet.ServletException;<br />
import javax.servlet.ServletRequest;<br />
import javax.servlet.ServletResponse;<br />
import javax.servlet.UnavailableException;</p>
<p>public class SetCharacterEncodingFilter implements Filter {</p>
<p>    protected String encoding = &#8220;UTF-8&#8243;;</p>
<p>protected FilterConfig filterConfig = null;</p>
<p>    /<br />
    protected boolean ignore = false;</p>
<p>    public void destroy() {<br />
        this.encoding = null;<br />
        this.filterConfig = null;<br />
    }</p>
<p>    public void doFilter(ServletRequest request, ServletResponse response,<br />
                         FilterChain chain)<br />
        throws IOException, ServletException {</p>
<p>        if (ignore || (request.getCharacterEncoding() == null)) {<br />
            String encoding = selectEncoding(request);<br />
            if (encoding != null)<br />
                request.setCharacterEncoding(encoding);<br />
        }<br />
        if (ignore || (response.getCharacterEncoding() == null)) {<br />
            String encoding = selectEncoding(response);<br />
            if (encoding != null)<br />
                response.setCharacterEncoding(encoding);<br />
        }</p>
<p>        chain.doFilter(request, response);<br />
    }</p>
<p>    public void init(FilterConfig filterConfig) throws ServletException {<br />
        this.filterConfig = filterConfig;<br />
        this.encoding = filterConfig.getInitParameter(&#8220;encoding&#8221;);<br />
        String value = filterConfig.getInitParameter(&#8220;ignore&#8221;);<br />
        if (value == null)<br />
            this.ignore = true;<br />
        else if (value.equalsIgnoreCase(&#8220;true&#8221;))<br />
            this.ignore = true;<br />
        else if (value.equalsIgnoreCase(&#8220;yes&#8221;))<br />
            this.ignore = true;<br />
        else<br />
            this.ignore = false;<br />
    }</p>
<p>protected String selectEncoding(ServletRequest request) {<br />
return (this.encoding);<br />
}<br />
protected String selectEncoding(ServletResponse response) {<br />
	return (this.encoding);<br />
	}<br />
}</p>
<p> i think there is missing of character encoding &#8230;.i dont know hw to solve this issue<br />
hw i can solve this issue&#8230;&#8230;&#8230;.Please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lerin mathew</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-165532</link>
		<dc:creator>lerin mathew</dc:creator>
		<pubDate>Wed, 30 Dec 2009 10:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-165532</guid>
		<description>i cant able to view the details in a login page as malayalam when inserting into database. but able to read from database to another form

what is the problem?</description>
		<content:encoded><![CDATA[<p>i cant able to view the details in a login page as malayalam when inserting into database. but able to read from database to another form</p>
<p>what is the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lerin mathew</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-165528</link>
		<dc:creator>lerin mathew</dc:creator>
		<pubDate>Wed, 30 Dec 2009 10:05:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-165528</guid>
		<description>i have a problem in getting input data as malayalam (indian) language from a jsp form to postgresql database.I am using Jboss tools  version 2.0.0 G.A.

the situation is .. i am creating a login jsp form using 2 fields name and password  in unicode malayalam . when i enter input data to a form and send to database  i can able to see the name and password  as malayalam . But when i check it in the database they are not converted to malayalam..

what can be the problem? i have made changes in jsp,xml and servlet in utf-8 format.

still i got problem..

please give me a reply</description>
		<content:encoded><![CDATA[<p>i have a problem in getting input data as malayalam (indian) language from a jsp form to postgresql database.I am using Jboss tools  version 2.0.0 G.A.</p>
<p>the situation is .. i am creating a login jsp form using 2 fields name and password  in unicode malayalam . when i enter input data to a form and send to database  i can able to see the name and password  as malayalam . But when i check it in the database they are not converted to malayalam..</p>
<p>what can be the problem? i have made changes in jsp,xml and servlet in utf-8 format.</p>
<p>still i got problem..</p>
<p>please give me a reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cpt.Nut</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-154080</link>
		<dc:creator>Cpt.Nut</dc:creator>
		<pubDate>Thu, 17 Sep 2009 13:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-154080</guid>
		<description>GET after POST / redirecting to utf-8 urls showing proper urls:

http://stackoverflow.com/questions/846409/configuring-tomcat-5-5-to-utf-8-encode-all-sendredirect-redirections/1438958#1438958</description>
		<content:encoded><![CDATA[<p>GET after POST / redirecting to utf-8 urls showing proper urls:</p>
<p><a href="http://stackoverflow.com/questions/846409/configuring-tomcat-5-5-to-utf-8-encode-all-sendredirect-redirections/1438958#1438958" rel="nofollow">http://stackoverflow.com/questions/846409/configuring-tomcat-5-5-to-utf-8-encode-all-sendredirect-redirections/1438958#1438958</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vijaypal Singh</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-153255</link>
		<dc:creator>Vijaypal Singh</dc:creator>
		<pubDate>Thu, 10 Sep 2009 05:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-153255</guid>
		<description>Thanks a ton.</description>
		<content:encoded><![CDATA[<p>Thanks a ton.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-142870</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 11 May 2009 10:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-142870</guid>
		<description>Hi 
am passing hindi text from jsp to java action class. But in java class hindi text is printing as à¤²à¤¿à¤ . Plz help me out..</description>
		<content:encoded><![CDATA[<p>Hi<br />
am passing hindi text from jsp to java action class. But in java class hindi text is printing as à¤²à¤¿à¤ . Plz help me out..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vishal joshi</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-125520</link>
		<dc:creator>vishal joshi</dc:creator>
		<pubDate>Sat, 27 Dec 2008 07:55:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-125520</guid>
		<description>its a matter of my career..plz phil help me out</description>
		<content:encoded><![CDATA[<p>its a matter of my career..plz phil help me out</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vishal joshi</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-125519</link>
		<dc:creator>vishal joshi</dc:creator>
		<pubDate>Sat, 27 Dec 2008 07:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-125519</guid>
		<description>Hi Phil,
if u want to see our application then u can go to www.sgx.co.in</description>
		<content:encoded><![CDATA[<p>Hi Phil,<br />
if u want to see our application then u can go to <a href="http://www.sgx.co.in" rel="nofollow">http://www.sgx.co.in</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vishal joshi</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-125518</link>
		<dc:creator>vishal joshi</dc:creator>
		<pubDate>Sat, 27 Dec 2008 07:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-125518</guid>
		<description>Hi Phil,
I am facing a problem in my application.i m making this application with the help of struts,hibernate,jsp. this web application is for Indian language(Hindi,Marathi,Tamil,Talgu,Malayalam and so on).and to display text in these language we r using properties file.These property files r containing the text that we want to display on jsp.Good news is its working on our local server(OS-Windows XP and Server is Tomcat 5.X).but its not working after deploying it on remote server(OS-Linex and server Is TomCat-5.x).Plz Help me out...
waiting of ur reply....

Vishal jsshi</description>
		<content:encoded><![CDATA[<p>Hi Phil,<br />
I am facing a problem in my application.i m making this application with the help of struts,hibernate,jsp. this web application is for Indian language(Hindi,Marathi,Tamil,Talgu,Malayalam and so on).and to display text in these language we r using properties file.These property files r containing the text that we want to display on jsp.Good news is its working on our local server(OS-Windows XP and Server is Tomcat 5.X).but its not working after deploying it on remote server(OS-Linex and server Is TomCat-5.x).Plz Help me out&#8230;<br />
waiting of ur reply&#8230;.</p>
<p>Vishal jsshi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.whirlycott.com/phil/2005/05/11/building-j2ee-web-applications-with-utf-8-support/comment-page-1/#comment-69730</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Fri, 09 May 2008 07:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.whirlycott.com/phil/2005/05/08/unicode-trickery/#comment-69730</guid>
		<description>give the code to update a record in struts using hibernate in a page  tag</description>
		<content:encoded><![CDATA[<p>give the code to update a record in struts using hibernate in a page  tag</p>
]]></content:encoded>
	</item>
</channel>
</rss>
