cagan327
Apr 22nd, 2006, 10:52 AM
I am having problem with spring:message tag (as well as with the fmt:message tag). Both tags ignore the encoding specified in the page header.
I'm using both:
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
and
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
declarations in my jsp files.
If I write the text with non-ascii chars directly on the page, they display properly.
But the text returned by spring:message tag contains ?s rather than the non-ascii chars.
I read some postings that fmt:message ignores the encoding directive on the page.
Any ideas on how to fix this?
Thanks,
Cagan
I'm using both:
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
and
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
declarations in my jsp files.
If I write the text with non-ascii chars directly on the page, they display properly.
But the text returned by spring:message tag contains ?s rather than the non-ascii chars.
I read some postings that fmt:message ignores the encoding directive on the page.
Any ideas on how to fix this?
Thanks,
Cagan