cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaroslav Kuruc <ku...@fiit.stuba.sk>
Subject Re: [i18n] Replacing entities with encoded chars
Date Sun, 18 Apr 2004 08:17:31 GMT
Antonio Gallardo wrote:

> Jaroslav Kuruc dijo:
> 
>>The problem is when I want to generate text which will be showed in
>>javascript alert. When it contains entity representation of the
>>characters, text in the message box is escaped and the entity
>>representation is showed. At least in the IE.
> 
> 
> Servus Blava ;-)
> 
> Currently, there is a problem:
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=26997
> 
> As a workaround you can encode the javascript as ISO-8859-1 (on the disk)
> and use the HTML entities to represent special chars.

The point is, browser doesn't understand entities in JS. Try this:

<html>
<body>
<script type="text/javascript" language="JavaScript">
alert('&Aacute;');
</script>
</body>
</html>

> 
> Best Regards,
> 
> Antonio Gallardo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org

-- 
Jaroslav Kuruc
kuruc@fiit.stuba.sk
FIIT STU, D208
Ilkovic(ova 3
842 16  Bratislava 4

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message