Okay, so by using <fmt_rt:setLocale>, you're effectively calling response.setLocale, which may modify the response content-type's charset. What happens if you do:
<c:set target="${pageContext.response}" property="contentType" value="text/html;charset=ISO-8859-7"/> right after <fmt_rt:setLocale value="el"/>? Although a quick look at Tomcat seems to imply that using "el" for a locale will result in ISO-8859-7 for an encoding anyway. How is your browser configured with respect to an encoding? By the way, do you always want "ISO-8859-7" and "el" in your app, or is there some decision logic that dictates when they get used? You may want to consider setting these with a Filter instead of through JSP tags. Quoting "Emmanuil Batsis (Manos)" <[EMAIL PROTECTED]>: > > Currently I'm trying to use ISO-8859-7 like: > > <%@ page contentType="text/html;charset=ISO-8859-7" %> > <%@ taglib uri="http://jakarta.apache.org/taglibs/fmt_rt" prefix="fmt_rt" > %> > > > Then, try to use the fmt_rt tags: > > > <fmt_rt:requestEncoding value="ISO-8859-7"/> > <fmt_rt:setLocale value="el" /> > <fmt_rt:message key="somekey"/> > > However, the properties taken from my resource bundle do not print > correctly (I have tried saving the file under both ISO-8859-7 and UTF-8). > > > > Kris Schneider wrote: > > I'm confused by your statement, "without the taglib reseting it each time". > I > > don't see where it's doing anything with character encoding. It sounds > like > > you're already doing something like: > > > > <%@ page pageEncoding="UTF-8" %> > > > > right? I suppose you could see if using a Filter to do: > > > > request.setCharacterEncoding("UTF-8"); > > > > has any effect. Or try configuring your browser to explicitly use Unicode > or > > Greek encoding (if it's not already). > > > > Quoting "Emmanuil Batsis (Manos)" <[EMAIL PROTECTED]>: > > > > > >>I seem to understand the problem somewhat better now, so my question is, > >>how do I use an encoding like UTF-8 or ISO-8859-7 without the taglib > >>reseting it each time iuse a tag like fmt_rt:message? > >> > >>Emmanuil Batsis (Manos) wrote: > >> > >> > >>>Hi, > >>> > >>>I'm using a greek bundle like > >>> > >>><fmt_rt:setLocale value="<%=langId%>"/> > >>><fmt_rt:setBundle basename="i18n.messages"/> > >>> > >>>and then a message like > >>> > >>> > >>><fmt_rt:message key="log.login"/> > >>> > >>>but the result prints mostly question marks... > >>> > >>>The encoding of the resource bundle, the JSP file and the JSP response > >>>is UTF-8. If any non-english user could share some insight it would be > >>>of great help. > >>> > >>>Thanks, > >>> > >>>Manos > >>> > >>> > >>>--------------------------------------------------------------------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > >>-- > >>Manos Batsis > >> > >> _ __ __ __ > >> / |/ /__ / /____ __ _ ___ _____/ /_ > >> / / -_) __(_-</ ' Y _ `/ __/ __/ > >> /_/|_/\__/\__/___/_/_/_|_,_/_/ \__/ > >> > >> > >>http://www.netsmart.gr > >>mailto:[EMAIL PROTECTED] > >>tel:+302103240940 > >>http://forte.netsmart.gr/foaf/manos_foaf.rdf > > > > > > -- > Manos Batsis > > _ __ __ __ > / |/ /__ / /____ __ _ ___ _____/ /_ > / / -_) __(_-</ ' Y _ `/ __/ __/ > /_/|_/\__/\__/___/_/_/_|_,_/_/ \__/ > > > http://www.netsmart.gr > mailto:[EMAIL PROTECTED] > tel:+302103240940 > http://forte.netsmart.gr/foaf/manos_foaf.rdf -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]