Jump to content

stylefrogcreative

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

stylefrogcreative's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi realjumper - thanks so much for this!!! I'm going to try everything suggested today, finally a light at the end of a very confusing Japanese tunnel!!! Thanks again.
  2. Hi there, I'm currently translating a Flash game into a number of different languages - highscores are saved to a db from Flash at the end of the game. My current PHP code works fine with the German and Dutch translations (handles their foregin characters fine): $firstname = htmlentities(strip_tags($_POST["firstname"]), ENT_QUOTES, "UTF-8"); My next translation is to Japanese! Flash definitely encodes as UTF-8, but when used with Japanese characters things seem to fall over. I enter: 美際投資基 Which should be encoded to this: 美際投資基 But actually appears as this: 美際投資基 I've tried changing the encoding in this string to "EUC-JP" and also "BIG5" in the PHP but it still returns the same. Is there anything obvious I should be changing in the PHP or db itself? I've never worked with Japanese before so any help is really appreciated!!! Many thanks, Matt
  3. Success - huge thanks to widox!!! I had been trying html_entity_decode, but working with: $firstname = htmlentities(strip_tags($_POST["firstname"]), ENT_QUOTES, "UTF-8"); has now sorted the prob. I'm about to attempt a Taiwanese translation too, you reckon it's just a case of changing the char code to "EUC-JP" or "BIG5"? Thanks again - you've saved my sanity
  4. Hi, Yes I'm sure the vars are encoded when sent from Flash via POST. I'll give that line a spin, thanks.
  5. Hi all, Desperately need help with this issue, been banging my head against it for the past two days!!! Essentially I have a Flash form that submits info, I need to allow German characters in several of the fields. On testing the following happens: I enter the following into my Flash field: äÄéöÖüÜß And send the vars via: myVars.sendAndLoad("savescore.php", myVars, "POST"); PHP seems to be recieving it as this: äÄéöÖüÜß When it should be received as: äÄéöÖüÜß Any ideas??? Do I need to change the charset that Flash submits the Post command in to iso-8859-1 or something like that? I'm pretty sure it submits as UTF-8 but it's definitely breaking down somewhere between the Flash and when it's read in to the php. Any help is really greatfully received - time is tinking on this one now! Thanks a million, Matt
  6. Wow - that's fantastic - thanks so much! With regards to renaming the image file - how would I go about saving it with a unique name? I need to name it with the vaue contained with $session, as thats how I'll call it back into Flash. Also, in the form which submits the image, how would I reference this new code, at the moment I'd be using: <form method="post" action="upload_handler.php" enctype="multipart/form-data"> <input type="file" name="logo"><br> <input type="submit" name="submit" value="Submit"> </form> Thanks again!
  7. Hi there, Got a deadline rapidly approaching and still banging my head against the wall - any help would be greatly appreciated! Basically I'm developing a Flash application which gives the user the option to customise an ecard with a message, company name and company logo. I've got everything working apart from the logo part. I need them to upload a logo, which is then resized and uniquely renamed, for when I pull it back in Flash. I need to specify that neither the height or the width is greater than 75 px, and resize if it is - keeping everything in scale. Here's the code so far: I generate a unique variable name and use it create a new text file ($session) $fd = fopen("$session.txt", "w"); fwrite($fd, "name=$name&message=$message&contentLoaded=true"); fclose($fd); I then write all the text info into this - which all works perfectly. I need to know how to let the user specify an image to upload, then once submitted I need to resize it so that neither the width nor the height is greater than 75px. We then need to save it as $session.jpg, so it has a unique name. Please help guys - I'm pulling my hair out here! Many, many thanks, Matt
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.