Characters changed by the webserver
<p>I have this code in an .js file, if it is downloaded via ftp</p>

<pre><code>texto=texto.replace(/á/g,"Waacute;");
texto=texto.replace(/é/g,"Weacute;");
texto=texto.replace(/í/g,"Wiacute;");
texto=texto.replace(/ó/g,"Woacute;");
texto=texto.replace(/ú/g,"Wuacute;");
</code></pre>

<p>but when the web browser downloads it with the webpage, that is what it gets.</p>

<pre><code>texto=texto.replace(/Ã¡/g,"Waacute;");
texto=texto.replace(/Ã©/g,"Weacute;");
texto=texto.replace(/Ã­/g,"Wiacute;");
texto=texto.replace(/Ã³/g,"Woacute;");
texto=texto.replace(/Ãº/g,"Wuacute;"); 
</code></pre>

<p>I don't know what's wrong with the code. I hope some body can guide me. 
Thanks in advance.</p>

<p>ernesto</p>
