I got word back that the SpiderMonkey implementation of E4X does NOT treat \u as an escape sequence in an XML literal, so I've filed it as an AS3 bug that we do. However, whoever gets assigned this bug will have to consult the E4X spec carefully to determine whether it has anything to say about this.

 

- Gordon

 


From: Gordon Smith
Sent: Wednesday, August 09, 2006 5:26 PM
To: '[email protected]'
Subject: RE: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML

 

I'll ask the Player team whether \u is supposed to be treated as an escape sequence when compiled into an XML literal.

 

- Gordon

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie
Sent: Wednesday, August 09, 2006 3:34 PM
To: [email protected]
Subject: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML

 

Gordon,

That makes sense but its still strange that when I created an XML var
in side application, it worked:

var localXML:XML =
<character>
<data>\u00A9</data>
<label>Inverted Exclamation Mark</label>
</character>;

I was able to see the copyright symbol as HTML on my label. What
threw me was that I couldn't do this from the XML.

--- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> \u00A9 is AS syntax that only means something inside of an AS string
> literal.
>
>
>
> In an XML literal, you have to use XML entity syntax, which I believe
> would be <data>&#x00A9;</data>.
>
>
>
> - Gordon
>
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to