myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Punz <werner.p...@gmail.com>
Subject Re: [Solved] MyFaces cyrillic
Date Wed, 07 Mar 2007 10:40:39 GMT
Ok something is going wrong there,
could be a bug, which myfaces version are you on?
I will give it a try tonight in 1.1.5 normally this should
work as expected if the resource file also is in utf-8



PeshoChuka schrieb:
>   Ok I think i localized the problem, but i don't know how to fix it.
> 
> <%@page language="java" pageEncoding="UTF-8" contentType="text/html;
> charset=utf8" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <f:loadBundle basename="resources.application" var="bundle"/>
> <f:view>
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
> <title><h:outputText value="#{bundle['welcome.title']}" /></title>
> </head>
> <body>
> <H1>поздрави!</H1>
> <h3><h:outputText value="#{bundle['welcome.heading']}" /></h3>
> <p><h:outputText value="#{bundle['welcome.message']}" /></p>
> </body>
> </html>
> </f:view>
> 
>   I you see the cyrillic text in the <H1>..</H1>  it displays correctly on
> the web page.
> But the text that is taken from the property files comes like monkeys. The
> property file is UTF-8 there is no doubgth.
> I double checked it. So for some reasone the <h:outputtext> or the
> resourcebundle is causing problems.
> Do you have any idea?


Mime
View raw message