Solved

actionscript utf-8 encoding

Posted on 2011-02-24
5
927 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

856 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