Hello,
I have a flash file that reads a variable part of a php file but it can not interpret the accents. How is the context flow, ie. how to identify. In short if any one has an solution for this then please let me know. Thank you.
Hello,
I have a flash file that reads a variable part of a php file but it can not interpret the accents. How is the context flow, ie. how to identify. In short if any one has an solution for this then please let me know. Thank you.
Problem of the characters with flash
Like everyone, I try to spend accents in body of email flash, I tried with the header mail:Code:System.useCodePage = true;
the following code:Code:$ Msg .= "Content-Type: text / plain; charset = \" iso-8859-1 \ "\ r \ n";
WITHCode:$ Body = urlencode (utf8_encode ($ _POST ["myFlashVar "])); / / or $ body = utf8_encode (urlencode ($ _POST [" myFlashVar "])); / / (worse!) / / Or $ body = $ _POST ["myFlashVar"]
I manage to make pdf properly, but not mails. (And same with the following headerCode:$ Body = utf8_decode (urldecode ($ body)) / / and $ body = urldecode (utf8_decode ($ body)) / / and $ body = utf8_decode ($ body);
Code:$ Msg .= "Content-Type: text / html charset = \" UFT-8 \ "\ n";
Hello,
Flash retrieve data in UTF-8 Unicode. Assuming you use the class LoadVars : For a successful show accents (special characterizes) must therefore send a flash text in UTF-8. If you load your text directly via a file. Txt (for example) it must register your text file in UTF-8. If you use php to create the text, uses the utf8_encode(), or otherwise, save your php file in UTF-8.
For the flash to php and mail ) and utf8_decode() it always returns accented characters in hieroglyphics. So much for me utf8_decode works very well. Example in the php file:
Code:$ message = utf8_decode ($ message);
Hey,
You can try the following code
Code:<? PHP $ To = "info@productionsng.com"; $ Subject = "Information"; $ E = $ _POST ['txtEmail']; $ msg = "Name:". $ _POST ['TxtName']; $ msg .= "\ nCourriel". $ E; $ msg .= "\ nTelephone". $ _POST ['TxtPhone']; $ msg .= "\ n \ nMessage". $ _POST ['TxtMessage']; $ hed = "From: $ e"; $ hed .= "\ nReply-To: $ e"; $ SentOk = mail ($ to, $ subject, $ msg, $ hed); echo "sentOk =". $ SentOk; ?>
Easier than bothering to transcribe all in touch and unicode formats:
- Select the text window dynamic in which you display your text
- In Properties, click Embed
- Then in the list, holding down CTRL, select 'Basic Latin' and 'Latin I'
Bookmarks