User Tag List

Results 1 to 4 of 4

Thread: Get object and encoding....

  1. #1
    Clicker Fusion 2.5Android Export Module
    hamdi369's Avatar
    Join Date
    Feb 2015
    Location
    Strasbourg France
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get object and encoding....

    Hi

    I have a problem with the Get object when sending POST containing acent like é.. à.. è.. ù..
    I have to post very large type of caractere because I'm working of an android app that support arabic, russian, corean, spanish..

    I know this question was still submitted http://community.clickteam.com/threads/66629-Posting-special-characters-with-Get-object?p=495924&viewfull=1#post495924 and another thread, but I can't find how to solv my problem...

    for exemple I have a simple php script that write an email :

    PHP Code:
    <?php
    $dest 
    $_POST['dest'];
    $phrase1 $_POST['phrase1'];
    $phrase2 $_POST['phrase2'];
    $message $phrase1"\r\n" $phrase2;
         
    $to      $dest;
         
    $subject 'Test denvoi dun mail';
         
    $message $message;
         
    $headers 'From: noreply@hamdi-fouzai-art.com' "\r\n" .
         
    'Reply-To: no-reply@hamdi-fouzai-art' "\r\n" .
         
    'X-Mailer: PHP/' phpversion();

         
    mail($to$subject$message$headers);
     
    ?>
    When I send :
    phrase1 (sentence1) = "Ceci est la première phrase à envoyer" (this is the first sentence to send.. in french)
    phrase2 (sentence2) = "A t-elle été correctement envoyée?" (Is it correctly sended?)


    I get :
    Ceci est la premi?FFFFE8re phrase ?FFFFE0 envoyer
    A t-elle ˙FFFFE9t˙FFFFE9 correctement envoy˙FFFFE9e?
    Can anyone help me please? thank you very much for help

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi have you tried changing the default php charset to UTF-8?

    PHP Code:
    $phase1 htmlentities$_POST['phrase1'] , ENT_COMPAT'UTF-8');
    $phase2 htmlentities$_POST['phrase2'] , ENT_COMPAT'UTF-8'); 
    or

    PHP Code:
    $message htmlentities$phrase1"\r\n" $phrase2 ENT_COMPAT'UTF-8'); 

    Andy

  3. #3
    Clicker Fusion 2.5Android Export Module
    hamdi369's Avatar
    Join Date
    Feb 2015
    Location
    Strasbourg France
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Gibbon
    thank you for your answer

    I tried your first code :
    PHP Code:
    $phase1 htmlentities$_POST['phrase1'] , ENT_COMPAT'UTF-8');
    $phase2 htmlentities$_POST['phrase2'] , ENT_COMPAT'UTF-8'); 
    I get a empty email...


    with the second code :

    PHP Code:
    $message htmlentities$phrase1"\r\n" $phrase2 ENT_COMPAT'UTF-8'); 
    I get:

    Ceci est la premi&yuml;FFFFE8re phrase &yuml;FFFFE0 envoyer
    A t-elle &yuml;FFFFE9t&yuml;FFFFE9 correctement envoy&yuml;FFFFE9e?

    I tried to with utf8_encode() and utf8_decode() tooit doesn't work....

    it seem that iconv is more appropriate, but how to know what is the ISO of the Get object.... ?

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jan 2014
    Location
    Paris, France
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ton .php est-il bien encodé en UTF8 ?

Similar Threads

  1. Saving a text file with specific Encoding?
    By mega21 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th December 2012, 03:33 PM
  2. Sound resampling/re-encoding when building?
    By LIJI in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 3rd April 2012, 04:59 PM
  3. Binary Object Encoding to hex bug?
    By gamefreak202 in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd June 2009, 09:42 PM
  4. Blowfish and encoding
    By Corentin in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st May 2008, 04:29 PM
  5. Encoding with UTF-8 or ISO-8859-2..
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th January 2007, 01:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •