Hi!

I've got a problem displaying special characters in Flash. I create a XML document with PHP. I call this PHP-script from Flash MX.

This works fine except when the XML contains special characters such as é, ç, ñ et cetera. These characters simple seem to be ignored so they're not being displayed 😕

Sample XML-code:

<?xml version="1.0" encoding="ISO-8859-1"?>
	<item>
		<title>Titel of the item</title>
		<text>
			<subtext>subtext 1</subtext>
			<subtext>subtext 2</subtext>
		</text>
	</item>

I've tried lot's of stuff, using htmlentities() to encode special characters to the special html-presentation (eg. ë = & euml ; or & # 130; ) This doesn't do the trick 🙁

I've also tried another encoding of my XML-document. I use the ISO-8859-1 charset, I've also tried the utf-8 charset without success..

I've also tried escaping the characters in Flash.

Currentely the only thing that works is replacing all special characters with their "normal" one, é -> e, ñ -> n et cetera.

Anybody got a clue?

Thnx in advance,

SnaacK

    Thnx for the help :rolleyes:

    I found it myself:

    Using external text or XML files that are not Unicode encodedIf you load external files into a Macromedia Flash Player 6 movie that are not Unicode encoded, the text in the external files will not display correctly when the Macromedia Flash Player 6 attempts to display them as Unicode. You can tell the Macromedia Flash Player 6 to use the traditional code page of the operating system that is running the player. To do this, add the following code as the first line of code in the first frame of the movie that is loading the data:

    system.useCodepage = true;

    Source: Macromedia Site

    I found the answer in a yahoo news group.. This problem is not yet documented in the Flash MX help..

      Write a Reply...