-Matt
On 8/24/05, Slawek <[EMAIL PROTECTED]> wrote:
i have noticed strange corelations while displaying special (polish)
characters:
im also using message boundle and when im doing like that:
function display(text){
alert(text);
}
<h:commandButton ........... >
than everything is ok, but when doing it like that:
function display(){
text="<h:outputText value="#{msg.message1 }"/>";
alert(text);
}
<h:commanButton ........... >
than i see \uSH1T or sth;)
its little annoyin cause sommetimes my text should be constans and i dont
need to pass it as parameter.
cheers
Sławek Sobótka
> Hi Matt,
>
> But the problem is that encoding is generated by JSF when using EL like
> this:
>
> #{messages.literal1 }
>
> 2005/8/24, Matt Blum <[EMAIL PROTECTED]>:
>>
>> You need to use the Unicode encoding for the character, like so:
>>
>> "La f\u00f3rmula es correcta"
>>
>> There's a handy online tool to find the codes for most special
>> characters
>> here:
>> http://www.saila.com/usage/tips/examples/special_characters.html
>>
>> -Matt
>>
>> On 8/24/05, Enrique Medina <[EMAIL PROTECTED] > wrote:
>> >
>> > Hi,
>> >
>> > I know this is not a question directly related with MyFaces, but does
>> > anybody knows how to solve this problem?
>> >
>> > I define my literal strings in a properties file, and then I have
>> > created a custom messages tag that renders the message as an alert of
>> > _javascript_. So when a JSF message is generated, it is rendered as an
>> alert.
>> > My problem is with accents. For example, in the alert window the text
>> > appears like:
>> >
>> > "La fórmula es correcta"
>> >
>> > while it should be:
>> >
>> > "La fórmula es correcta"
>> >
>> > Is it a matter of escaping the text in _javascript_? Because I have
>> tried
>> > the escape() function but with no success...
>> >
>> >
>>

