Czech chars in "alert"?

Hi.I have a webpage, an agent that do stuf and uses “print Message” function to alert a text to the webuser.

I have problem with different language specific chars. I see all the czech characters on the page as they are supposed to be.

When I alert the text: “Položka již byla do výběru přidána. Množství můžete změnit v přehledu vybraných produktů.”

I get:

Plol&#382ka ji&#382 byla do v3;ru p&#345id. …"

&#382 = ž but I can’t seem to get it like the original char.

If I muck around with charset or ISO then I corrupt the html output page. But the alert won’t do anything for me.

I tried to encode it to hex since JS might mess up… But Polo\u017Eka ji\u017E byla do v\u00FDb\u011Bru p\u0159id\u00E1na gets displayed just like that.

The text is read from a keyword and a view… and it transforms in the wrong way. I wanna keep a ž as a ž and not as &#382 Any ideas would be very much appreciated!