Solved

flash xml content ' for '

Posted on 2012-03-13
4
452 Views
Last Modified: 2012-03-13
Hi

I don't use flash very often, but I have a client who needs me to update his website and it is flash based, with xml as a flat 'database'...

Some of the content has apostrophes in it, which are being displayed as

'

is there a way around this?

I have just made sure the file format is utf-8, but still getting '

Cheers
0
Comment
Question by:cycledude
  • 2
4 Comments
 

Author Comment

by:cycledude
ID: 37714249
in the meantime I have got around this by using a ` instead, i think it works as an apostrophe!
0
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 250 total points
ID: 37714317
have a look at this old post.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XML/Q_25112873.html 

if that doesn't help then upload an example of you xml file and the snippet of code you're using to load the content.
0
 
LVL 12

Accepted Solution

by:
Proactivation earned 250 total points
ID: 37715789
Have you identified at which point the text gets HTML encoded?

It's best to try to produce your XML in the format you need rather than retro-fit a fix, but failing that, you can use these functions to add/remove HTML entities:

public static function htmlUnescape(str:String):String {
    return new XMLDocument(str).firstChild.nodeValue;
}
public static function htmlEscape(str:String):String {
    return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString();
}

Open in new window

0
 

Author Closing Comment

by:cycledude
ID: 37716072
thanks for the replies, the client was happy with my improvisation! so I will leave it at that.

` instead of '

;o)
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fetch XML Unions? 3 590
IE11 stops playing video on a certain website 10 79
How to read XML file attributes... 17 62
Issue with XSLT mapping 10 36
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

810 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