Solved

actionscript utf-8 encoding

Posted on 2011-02-24
5
912 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:patsmitty
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now