Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 2nd, 2011, 08:09 AM
bajaren bajaren is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2011
Posts: 2 bajaren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 53 sec
Reputation Power: 0
Problems with swedish characters едц

Hi.
I am using flash cs3 actionscript3.0. In a programme i am developing, I send a request to a database through a php-file and retrieve an answer. It is returning a text from the database. Everything works fine except that when I put the text in a textfield it is viewed with \u00e4 instead of the letter "д".

I have used both the php-file and the database in a android application and it works fine and the letters is viewed correct so I know there is nothing wrong with the database or php-file.

Maybe there is a way to decode the database text in flash to make it utf-8 or something like that. Do anyone have a suggestion on how to make it work.
PHP Code:
<?php  
header
("Content-type: text/html; charset=utf-8");   
$con mysql_connect("localhost","db","psw");
if(!
$con) { die(' not working: ' mysql_error()); }
mysql_select_db("dbname"$con); 
mysql_set_charset('utf8');  

if(
$_REQUEST['sort']=='categories'&&$_REQUEST['prg']=='flash'

$q=mysql_query("SELECT * FROM ".$_REQUEST['sort']." ORDER BY id"); 

while(
$e=mysql_fetch_assoc($q)) //assoc      
$output[]=$e

echo 
$output

}  
mysql_close(); 

?>

I have tried to save as utf-8, unicode, ansi. Maybe I should remove header and mysql_set_charset

Thanks for helping

Last edited by bajaren : November 3rd, 2011 at 06:30 AM. Reason: Add codesample

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Problems with swedish characters едц


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap