You should also convert your application resource bundles to UTF-8.
Here is a blogpost contains necessary steps..
Cheers,
Mert.
On 4/18/06, Cagatay Civici <[EMAIL PROTECTED]> wrote:
Hi,
What about the filter mapping, are you sure the filter does it's job.
Also you can do the same thing with a custom filter like;
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;
public class YourCharEncodingFilter implements Filter {
public void init(FilterConfig arg0) throws ServletException {
}
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
throws IOException, ServletException {
servletRequest.setCharacterEncoding("UTF-8");
servletResponse.setCharacterEncoding("UTF-8");
filterChain.doFilter (servletRequest, servletResponse);
}
public void destroy() {
}
}
Regards,
Cagatay
On 4/18/06, Murat Hazer <[EMAIL PROTECTED] > wrote:Hi,
I see this line(s) at the output console after each page render completed
17:16:09,796 DEBUG HtmlResponseWriterImpl:97 - No character encoding given, using default character encoding ISO-8859-1
i am using spring's CharacterEncodingFilter to solve this problem as below;
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter </filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>
should i do something different in order to change default char encoding to utf-8?
--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/