How do I modify a string printed by a script?
<p>I'm having problems with wordpress mishandling accented characters, or maybe the problem is with some plugin. Whichever the case I need to "translate" some strings, removing accents which i do with:</p>

<pre><code>  $value = strtr($value, $trans);
</code></pre>

<p>I really need to change this string which renders the user's location but it's printed with a script so I have no idea how to do it:</p>

<pre><code>&lt;script language="javascript"&gt; document.write('' + geoip_city() +''); &lt;/script&gt;
</code></pre>

<p>Is there a way to assign it's result to a php value beforehand or something? Maybe removing the accents with a script. I really need to modify it, how could I manage to do it? Thanks</p>
