# Prob Special characters mailform (french)

**URL:** <https://forum.kirupa.com/t/prob-special-characters-mailform-french/252283>\
**Category:** Uncategorized\
**Created:** [February 18, 2008, 6:30pm UTC](https://forum.kirupa.com/t/prob-special-characters-mailform-french/252283 "2008-02-18T18:30:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modulater](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@modulater](https://forum.kirupa.com/u/modulater)\
**Post date:** [February 18, 2008, 6:30pm UTC](https://forum.kirupa.com/t/prob-special-characters-mailform-french/252283/1 "2008-02-18T18:30:33Z")

</div>

Hi there,

I have made a mailform with php. For the first time I’m using it for a client who want’s everything in frensh. The prob is when I test the email I recieve the mail but the text gives a wrong output. Special characters like é,&,… etc gives somthing like this as a result. I tried saving the php as udfcode-8 without result. How solve this:s.Need help urgent. thx

Sample output email:  
Nous vous remercions de lâ•?Ã?Ã¶â??ÃŒâ??â??â•?Ã Ã¶â??Ã«â•?Ã Ã¶Â¬â•¢intâ•?Ã?Ã¶â??â• â??â??Â¬Â¨Â¬Â©râ•?Ã?Ã¶â??â• â??â??â•?Ã?Ã¶â??Ã«Â¬Â¢t dans les produits Magnifiek.

code php:

\<?

$adminaddress = “”;  
$siteaddress ="";  
$sitename = “”;

$date = date(“d/m/Y H:i:s”);

$bedrijf = $HTTP\_POST\_VARS[‘bedrijfsnaam’] ;  
$voornaam = $HTTP\_POST\_VARS[‘voornaam’] ;  
$naam = $HTTP\_POST\_VARS[‘naam’] ;  
$adres = $HTTP\_POST\_VARS[‘adres’] ;  
$postcode = $HTTP\_POST\_VARS[‘postcode’] ;  
$gemeente = $HTTP\_POST\_VARS[‘gemeente’] ;  
$action = $HTTP\_POST\_VARS[‘action’] ;  
$email = $HTTP\_POST\_VARS[‘email’] ;  
$tel = $HTTP\_POST\_VARS[‘telnummer’] ;  
$fax = $HTTP\_POST\_VARS[‘faxnummer’] ;  
$code = $HTTP\_POST\_VARS[‘code’] ;

if ($action == “send”) {  
mail ("$adminaddress",“Demande de colis d’échantillons gratuits”,  
"Le visiteur de $sitename souhaite un colis d’%E9%0D%0Achantillons gratuits.

Société: $bedrijf  
Prénom: $voornaam  
Nom: $naam  
Rue + n°: $adres  
Code postal: $postcode  
Gemeente: $Commune  
Email: $email  
Tél: $tel

Fax: $fax

Code personnel: $code

```
Envoyé le :
------------------------------
Date/Temps: $date","FROM:$adminaddress" ) ; 

mail ("$email","Confirmation colis d’échantillons $sitename", 
"Cher Monsieur/Chère Madame $naam,

Nous vous remercions de l’intérêt dans les produits $sitename.

```

Vous recevez bientôt votre colis d’échantillons DURABLE par poste .

```
$sitename
$siteaddress","van:$adminaddress") ; 

$sendresult = "Merci. Vous recevez très prochainement une confirmation par courriel.";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo $send_answer;

```

} //

?\>
