php mysql flex unicode

Posted by JonoB on Stack Overflow See other posts from Stack Overflow or by JonoB
Published on 2011-01-07T14:22:08Z Indexed on 2011/01/07 14:53 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

I have a problem with saving the £ symbol to a mysql database.

  1. I am running a flex front end, with a php + mysql backend

  2. When I save a record from flex, the string gets sent to the server as "This amount is £10"

  3. php views the string as above, and when it gets saved into the DB, it gets saved as "This amount is £10". My understanding is that this is correct based on MySQL or PHP is appending a  whenever the £ is used

  4. I now retrieve the above record, and it gets sent to flex as "This amount is £10". Flex correctly displays this in a textarea as "This amount is £10"

  5. I change another field in the same record in flex, and re-save the transaction. The string now gets sent to the server as "This amount is £10"

  6. The record is now saved into the DB as "The amount is £10". Each time the record is re-saved, this effect snowballs.

Thanks for any advice you can give.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql