# Sending by email (flash form & php) INTERNATIONAL CHARACTERS

**URL:** <https://forum.kirupa.com/t/sending-by-email-flash-form-php-international-characters/41476>\
**Category:** Uncategorized\
**Created:** [January 29, 2004, 4:24pm UTC](https://forum.kirupa.com/t/sending-by-email-flash-form-php-international-characters/41476 "2004-01-29T16:24:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xirika](https://avatars.discourse-cdn.com/v4/letter/x/9de053/32.png) [@xirika](https://forum.kirupa.com/u/xirika)\
**Post date:** [January 29, 2004, 4:24pm UTC](https://forum.kirupa.com/t/sending-by-email-flash-form-php-international-characters/41476/1 "2004-01-29T16:24:05Z")

</div>

hi!

I do have a big problem! 🙂

I made a flash form to send variables by a php file for my mail…the fact is that when i receive the mail characters lik “ç ã é” and so on are all messed up!

this is what i have in flash:

1. imput textfields with several variables, and i already choosed all kind of latin characters, and it isn´t working!
2. the code for the send button is:

on (release) {  
if (!from.length || from.indexOf("@") == -1 || from.indexOf(".") == -1) {  
status = “Insere um email válido!”;  
} else if (!nome.length) {  
status = “Digita o teu nome próprio!”;  
} else if (!apelido.length) {  
status = "Digita o teu  
(…allvariables…)  
} else {  
lineAdapt();  
loadVariablesNum(“mail.php3”, 5, “POST”);  
gotoAndStop(2);  
}  
}

3.and the code in same frame is:

subject = “beAmodel | nova inscrição”;  
message\_send = “Inscrição”;  
stop();  
function lineAdapt() {  
message\_send = message;  
nome = "Nome: "+nome;  
apelido = "Apelido: "+apelido;  
tel = "Tel: "+tel;  
telm = "Telm: "+telm;  
from = "Email: "+from;  
morada = "Morada: "+morada;  
localidade = "Localidade: "+localidade;  
cod\_postal = "Código Postal: “+cod\_postal+” - "+cod\_postal2;  
data\_nascimento = "Data de nascimento: "+data\_nascimento;  
altura = "Altura: "+altura;  
obs = "Obs: "+obs;  
nome\_ee = "Nome do Encarregado de Educação: "+nome\_ee;  
contacto\_ee = "Contacto do Encarregado de Educação: “+contacto\_ee;  
while (msg\_count\<length(message)) {  
msg\_count = msg\_count+1;  
if ((substring(message\_send, msg\_count, 2)) eq “\r”) {  
message\_send = (substring(message\_send, 1, msg\_count-2)) add "  
" add (substring(message\_send, msg\_count+2, (length(message\_send))-msg\_count+2));  
}  
}  
message = message\_send+”  
“+nome+”  
“+apelido+”  
“+”  
“+tel+”  
“+telm+”  
“+from+”  
“+morada+”  
“+localidade+”  
“+cod\_postal+”  
“+”  
“+data\_nascimento+”  
“+altura+”  
“+”  
“+obs+”  
“+”  
“+nome\_ee+”  
"+contacto\_ee;  
delete msg\_count;  
delete message\_send;  
}

and this is working! I still don´t know if the problem is in flash or in the php file…

and this what i have in “mail.php3”:

```
&lt;?php

```

mail("xirika@hotmail.com", $subject, $message, “From: beAgency  
Reply-To: $from  
X-Mailer: PHP/” . phpversion());  
?\>

I already tried to save the php file in dreamweaver encoded in UTF-8 but it didin´t worked, actuyally the mail never came!!

what should I do??

Thank u for reading, if u know ssomething about it…i apreciate!! 😉

xirika

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 4, 2004, 7:50pm UTC](https://forum.kirupa.com/t/sending-by-email-flash-form-php-international-characters/41476/2 "2004-02-04T19:50:48Z")

</div>

or use escape() and unescape() on your strings.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 5, 2004, 8:15pm UTC](https://forum.kirupa.com/t/sending-by-email-flash-form-php-international-characters/41476/3 "2004-02-05T20:15:10Z")

</div>

well kalliban, the code

System.useCodepage = true

solved my problem in one way:  
it does send the international charecters, the problem is that they appeared to be all right but:

for eg… “coração” it’s like “coraçao”

get it?! 😕

* * *

humm…i don’t have any strings…

and I do not have, for sure, a 17’’ Powerbook 😉

thankx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 5, 2004, 9:38pm UTC](https://forum.kirupa.com/t/sending-by-email-flash-form-php-international-characters/41476/4 "2004-02-05T21:38:13Z")

</div>

hehe… don’t worry, the powerbook I can manage on my own…

well, I meant vars, not string… sorry. even though, the vars are strings…
