hi,
I'm new to Drupal, and I'm loving it...
Since there's no "shoutbox" module available (a feature very dear to my users), I "adapted" a script I was using before so the user name is automatically inserted in the "shout"... I basically put the script output inside an Iframe, and the form to submit the shouts outside it, so I can insert the user name in a <hidden> tag (to stop anonymous postings)
I created a php block with the following code:
global $user;
if ($user->uid) {
return ("<IFRAME name=Bocas marginWidth=0 marginHeight=0 src=\"/bocas/viewshoutbox.php\" frameBorder=0 width=170 scrolling=auto height=300></IFRAME>
<br>
<br>
<form name=sbx action=/bocas/shoutbox.php target=Bocas>
<input type=hidden name=action value=add>
<input type=hidden name=nick value=" . $user-> name ." title=Nome>
<input type=text name=shout size=22 maxlength=120 value=\"\" class=editbox title=Bitaite>
<input type=submit name=Submit value=enviar class=button>
</form>");
}
The problem is that all the extended characters submitted by the form are being replaced as follows:
ç -> ç
ã -> ã
à -> Ã
é -> é
è -> è
ó -> ó
º -> º
ê -> ê
and so on... (I'm Portuguese, and we have a lot of extended characters)
Also, I'm almost absolutely sure I've seen this elsewhere in my test site (the same were I'm using this "hack" I'm having problems with), this time in a Drupal "native" feature, but can't remember where...