Solved

actionscript utf-8 encoding

Posted on 2011-02-24
5
939 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

724 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