Menu

amfphp with actionScript: can't solve problem with special characters

figueiredo
2014-02-21
2014-02-26
  • figueiredo

    figueiredo - 2014-02-21

    I m trying with amfphp in localhost, but i get a fatal error in the amfphp 2.1 brower because of a simple french word with accent 'problème'. Flash returns the word with a bad ending (a chineese character) Written like this, 'probleme', there's no error and everything works fine.
    Charset seems to be ok, in utf-8. Since i'm novice, I can't find the solution.
    There might be something to do.
    Can someone help me please?

    [amfphp 2.1, ActionScript3, Php5.3.9, Apache 2.2 VC9, Win7]

    Here's the simple code of the service with accent on the e :

    And the error from browser:

    Fatal error: Uncaught exception 'Exception' with message 'service called failed. server response: null request:
    {"serviceName":"org/bytearray/test/Echanges", "methodName":"premierAppel", "parameters":[]}'
    in C:\EasyPHP539\www\echanges\BackOffice\ServiceCaller.php:56 Stack trace: #0
    C:\EasyPHP539\www\echanges\BackOffice\ServiceBrowser.php(110):
    Amfphp_BackOffice_ServiceCaller->makeAmfphpJsonServiceCall('org/bytearray/t...', 'premierAppel', Array) #1 {main} thrown in C:\EasyPHP539\www\echanges\BackOffice\ServiceCaller.php on line 56

     
    • ariels

      ariels - 2014-02-26

      Hi,
      I just ran a quick test with 2.2, and it works fine. Would you try with
      2.2? The service browser now allows you to make both JSON and AMF calls.
      Also maybe try using a packet sniffer
      http://www.silexlabs.org/amfphp/documentation/using-a-packet-sniffer/
      Ariel Sommeria-Klein
      team lead for http://silexlabs.org/amfphp/
      http://baguetteamf.com

      On Fri, Feb 21, 2014 at 11:58 AM, figueiredo mario90@users.sf.net wrote:

      I m trying with amfphp in localhost, but i get a fatal error in the amfphp
      2.1 brower because of a simple french word with accent 'problème'. Flash
      returns the word with a bad ending (a chineese character) Written like
      this, 'probleme', there's no error and everything works fine.
      Charset seems to be ok, in utf-8. Since i'm novice, I can't find the
      solution.
      There might be something to do.
      Can someone help me please?

      [amfphp 2.1, ActionScript3, Php5.3.9, Apache 2.2 VC9, Win7]

      Here's the simple code of the service with accent on the e :

      And the error from browser:

      Fatal error: Uncaught exception 'Exception' with message 'service called
      failed. server response: null request:
      {"serviceName":"org/bytearray/test/Echanges", "methodName":"premierAppel",
      "parameters":[]}'
      in C:\EasyPHP539\www\echanges\BackOffice\ServiceCaller.php:56 Stack trace:

      0

      C:\EasyPHP539\www\echanges\BackOffice\ServiceBrowser.php(110):
      Amfphp_BackOffice_ServiceCaller->makeAmfphpJsonServiceCall('org/bytearray/t...',
      'premierAppel', Array) #1 {main} thrown in
      C:\EasyPHP539\www\echanges\BackOffice\ServiceCaller.php on line 56


      amfphp with actionScript: can't solve problem with special charactershttps://sourceforge.net/p/amfphp/discussion/247251/thread/e78e33d4/?limit=50#1704

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/amfphp/discussion/247251/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      cordialement,
      Ariel Sommeria-Klein

       

Log in to post a comment.

MongoDB Logo MongoDB