Link to home
Start Free TrialLog in
Avatar of young_buddha
young_buddhaFlag for India

asked on

actionscript utf-8 encoding

Hi i have a frontend in flex , backend in php and mysql database. The database defaults are set as utf-8, php file is in utf-8 encoding as well.

I have found that when i send data from flex and save in database, all the special latin characters get saved as funny characters. Interestingly though when fetched back into my flex app. the values show properly.


but if i use mysql_set_charset('utf8'); in php, the characters are saved properly in database also.

Question: why am i having to use mysql_set_charset('utf8');. Does flex not send data in utf-8 (or even latin1) format ??

regards
sid
Avatar of Bruce Smith
Bruce Smith
Flag of United States of America image

Are you setting the encoding in your Flex front-end code like so?
<?xml version="1.0" encoding="utf-8"?>

Open in new window

Avatar of young_buddha

ASKER

yes.
ASKER CERTIFIED SOLUTION
Avatar of ChristoferDutz
ChristoferDutz
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.