User Tag List

Results 1 to 10 of 10

Thread: Get - php - MySQL: trouble with Nordic alphabets

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get - php - MySQL: trouble with Nordic alphabets

    I'm using the Get object to send data to MySQL database through a php script. When I run it from MMF2, everything works fine. But when compiled to swf, it fails to send Nordic alphabets Ä, ä, Ö, ö (A with two dots above, O with two dots above) to the database. Basically if player name contains one of these letters, it doesn't send any data at all. Then again when I test it inside MMF2, everything goes through no matter how many Nordic characters are used.

    Any ideas?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    Is this POST data or part of the URL?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    It's part of the URL, i.e. Get "http://domain.com/sendscore.php?name="+Edittext$("name")+"&score=" and so on...

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    Try sending it as POST data.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    Now it seems to work. Thanks! So is there any reason to use the URL embedded way anymore to send stuff to db or is "Post" always a better option?

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    As per the HTTP spec POST should be used when making changes, GET when making queries/requests.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    MJK I believe that it's more problem that still web addresses have got problems with accepting not latin characters. It is slowly corrected but still you would have to change them on special character sets like "space" to "%20"...

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    Maybe the URL encoder supports this? I have't tried.
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    If that's the case, the Get object has an URL encode expression in the latest version.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get - php - MySQL: trouble with Nordic alphabets

    OK, thanks guys. I think I'll keep using POST for now as it seems to work nicely.

Similar Threads

  1. post.PHP MySQL
    By markymoniom in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th January 2013, 09:49 PM
  2. MySQL object ?
    By Tanios in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd February 2011, 04:50 PM
  3. MySQL?
    By Pegasus_Seiya in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 16th February 2010, 02:20 PM
  4. MySQL?
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th January 2007, 05:07 PM

Posting Permissions

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