I do not know if there is a function but the \unnn notation works
definitely with alerts:

http://www.zid.tugraz.at/peter/javascript/unicode.html

I am not sure but the #nnn notation might be unicode numbers so they might
be the same numbers as in the \unnn notation


Mario Ivankovits schrieb:
> Hi!
> 
> We merged our JSP project with JSF so we can slowly migrate to JSF at all.
> This has been done by heavily using the verbatim tag - and even if its
> butt ugly ;-) it works.
> 
> Though, there is still one problem left.
> Now that the whole page renderes through the HtmlResponseWriter all the
> "umlauts" are converted to the &#nnn; form.
> 
> Normally this is not a problem as the browser successfully handles it -
> normally - but not when using the javascript function alert() to print
> such a string.
> 
> What I need now is a javascript function to unencode this string - is
> there already something in myfaces of do one know a library for this.
> I can create one myself, but I thought I'll ask before.
> 
> 
> Thanks!
> Mario
> 
> 

Reply via email to