2 Replies Latest reply on Jun 4, 2010 6:40 AM by dsdsdsdsd

    LoadVars Problem

      Hi all,

      I am creating a Flash (AS1) form that collects user input in Russian. Once the data is collected, it is stored in a LoadVars object and sent to an outer PHP file as follows:


      scriptVars = new LoadVars();
      scriptVars.age = age;
      scriptVars.sendAndLoad("XXX/submitVars.php", scriptVars, "POST");

      The PHP then dumps this data in an mySQL table. When I try to retrieve the data from this database, however, the encoding is not correct - that is, the cyrillic characters appear as nonsense characters (i.e. Выбр). I have changed around the text encoding for the mySQL table so that it should be compatible with Russian, and in fact it behaves correctly when I inject Russian data into the table directly.

      This leads me to believe that there is a problem concerning transferring cyrillic-encoded data, either with the native LoadVars object or the PHP code. Can anyone shed some light on this?

      Thanks very much,