Solved

actionscript utf-8 encoding

Posted on 2011-02-24
5
923 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:young_buddha
5 Comments
 
LVL 11

Expert Comment

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

Open in new window

0
 

Author Comment

by:young_buddha
ID: 34977305
yes.
0
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 500 total points
ID: 34977671
Well could it be that the default encoding of your Webserver ist set to something different thant UTF-8?
If you are using Apache, there should be some "AddDefaultCharset UTF-8" somewhere in your config.
Your php.ini should contain: "default_charset = “UTF-8¿"
Could you please double check this?
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 36321176
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question