Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

question // accented chars in php

2 views
Skip to first unread message

dorian

unread,
Apr 22, 2003, 7:37:53 AM4/22/03
to
Hello,

I've made a form within flash. the datas from this form are sended to a php
page on the server.

The button "send" into the flash form creates a LoadVars object and use the
send method:

on(release){
myData = new LoadVars();
myData.nom=nom;
myData.message=message;
myData.send("script.php", "post");
}


Here's the php page that creates automatically an email with the datas from
the form:

<html>
<body>
<?
$message = "nom:$nom\nmessage==$message";
$options = <<<FDT
X-Mailer: PHP4
FDT;
mail(adressThatRe...@server.com, "message from
blablabla", $message, $options);
print "thanks for your message, ...";
?>
</body>
</html>


__________________________________________

Here's my question:

The accented characters are wrong into the mail. By example, the accented e
looks like "Z^" ore smthing like that.
Is there a command to use into flash or php to have the correct encoding of
these characters?
__________________________________________


Thanks
Dorian


Jon Kraft

unread,
Apr 23, 2003, 5:12:23 AM4/23/03
to
"dorian" <do...@doodle.be> wrote:
>
> The button "send" into the flash form creates a LoadVars object and use
the
> send method:
>
> on(release){
> myData = new LoadVars();
> myData.nom=nom;
> myData.message=message;
> myData.send("script.php", "post");
> }
>
> The accented characters are wrong into the mail. By example, the accented
e
> looks like "Z^" ore smthing like that.
> Is there a command to use into flash or php to have the correct encoding
of
> these characters?

Hi Dorian,

Try to escape the values in Flash before you send them to PHP, e.g.:

on(release){
myData = new LoadVars();

myData.nom=escape(nom);
myData.message=escape(message);


myData.send("script.php", "post");
}

Hope this helps;
JOn

0 new messages