PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 9th, 2008, 01:12 AM
Wallgod Wallgod is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 23 Wallgod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 34 m 49 sec
Reputation Power: 0
Accented Characters

Hi All
I m sorry but this is not entirely a PHP issue but has PHP as one of the players.

I ve created a site in flash which gets its data from an XML file generated from the CMS (in PHP) and shows it. This XML file is generated by grabbing data from MySQL.

Inside flash I m using textfields that show htmlText so that it doesnt screw up on apostrophe etc. Also I run a loop on th incoming nodes to remove extra carriage returns.

Everything works fine except for foreign characters or the accented characters.

I cannot use a text file instead of an XML file as its a very big site related to artists(painters) hence there are many names with such characters. There is a lot of data coming in and I simply cannot keep allotting text files for even the name of the artist. I m sure i can do it that way but its too late now to consider that solution.

is there some way I can display these characters inside of Flash? With UTF-8, the characters were garbled in the XML itself and thus did not even make it to Flash.

I tried using htmlentities and then bring it inside but it shows the html entity in the format é and not é

I m currently using iso-8859-1 which at leasts gets the characters correctly inside the XML but in the Flash it doenst work.

In flash I have tried using System.useCodePage = true yet no luck

Any help is much appreciated
Thanks in advance and sorry for a not 100% php problem... but PHP plays a big part in it. Its creating the XML file in question!

Reply With Quote
  #2  
Old May 9th, 2008, 01:17 AM
Wallgod Wallgod is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 23 Wallgod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 34 m 49 sec
Reputation Power: 0
This Forum is magical.... i submitted the query and in seconds i stumbled upon the solution!!!

Well it may not be the perfect solution but here goes

System.useCodePage = true *MUST* be the first line of the actionscript code ( i had put it in the scene which loads after the preloader)

I simply put it into th preloader and it worked...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Accented Characters


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway