Results 1 to 6 of 6

Thread: Problem with flash and php

  1. #1
    Join Date
    Mar 2010
    Posts
    360

    Problem with flash and php

    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.

  2. #2
    Join Date
    Mar 2010
    Posts
    338

    Re: Problem with flash and php

    Problem of the characters with flash
    Code:
    System.useCodePage = true;
    Like everyone, I try to spend accents in body of email flash, I tried with the header mail:
    Code:
    $ Msg .= "Content-Type: text / plain; charset = \" iso-8859-1 \ "\ r \ n";
    the following code:
    Code:
    $ Body = urlencode (utf8_encode ($ _POST ["myFlashVar "])); / / or $ body = utf8_encode (urlencode ($ _POST [" myFlashVar "])); / / (worse!) / / Or $ body = $ _POST ["myFlashVar"]
    WITH
    Code:
    $ Body = utf8_decode (urldecode ($ body)) / / and $ body = urldecode (utf8_decode ($ body)) / / and $ body = utf8_decode ($ body);
    I manage to make pdf properly, but not mails. (And same with the following header
    Code:
    $ Msg .= "Content-Type: text / html charset = \" UFT-8 \ "\ n";

  3. #3
    Join Date
    Dec 2009
    Posts
    292

    Re: Problem with flash and php

    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.

  4. #4
    Join Date
    Dec 2009
    Posts
    192

    Re: Problem with flash and php

    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);

  5. #5
    Join Date
    Dec 2009
    Posts
    178

    Re: Problem with flash and php

    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; 
    ?>

  6. #6
    Join Date
    Dec 2009
    Posts
    296

    Re: Problem with flash and php

    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'

Similar Threads

  1. Problem with Flash on mac os x
    By Nalini_sh in forum Operating Systems
    Replies: 5
    Last Post: 25-12-2009, 08:36 AM
  2. Problem with flash in debian
    By Xmen in forum Windows Software
    Replies: 5
    Last Post: 16-12-2009, 12:25 PM
  3. DSI Flash Player Problem
    By abbase in forum Windows Software
    Replies: 3
    Last Post: 09-10-2009, 12:19 PM
  4. Macromedia flash problem
    By Walsh in forum Windows Software
    Replies: 3
    Last Post: 31-03-2009, 08:41 AM
  5. Replies: 6
    Last Post: 20-04-2007, 11:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,217,532.34124 seconds with 17 queries