RE: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML
Sorry, no t-shirt... just our thanks for helping us improve Flex. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: Wednesday, August 09, 2006 5:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML Wow, are you saying I found a bug? Do I get a t-shirt or something ;). --- In [EMAIL PROTECTED]ups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > 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: 'flexcoders@yahoogroups.com' > 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]ups.com [mailto:[EMAIL PROTECTED]ups.com] On > Behalf Of Michael Ritchie > Sent: Wednesday, August 09, 2006 3:34 PM > To: [EMAIL PROTECTED]ups.com > 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 = > > \u00A9</data> > Inverted Exclamation Mark > ; > > 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 40yahoogroups.com> > , "Gordon Smith" 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 ©. > > > > > > > > - 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML
>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. > Considering that every other major implementation of XPATH uses the HTML character code replacements and/or supports the full unicode character set directly, it probably wouldn't make sense to support a special escape sequence that only works for Flash front ends; it would make any middle tier developed for a Flash-based front end less compatible with other implementations. I don't believe it is written into the specs *not* to support special escape sequences, but in the interest of maintaining standards, it makes sense to stick to the way other major implementations have gone unless there is a compelling reason to do otherwise. Especially since the intended purpose in this situation is to display the resulting character as HTML. What might make more sense is a conversion function. Other implementations, such as XSL interpreters in browsers or on servers, allow for extensions to be added, but since this isn't possible in the FLash player, a pair of conversion functions (like fromCharCode and toCharCode) would allow conversions to and from unicode without causing incompatibilities. ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML
> That makes sense but its still strange that when I created an XML var > in side application, it worked: > > var localXML:XML = > > \u00A9 > Inverted Exclamation Mark > ; > > > 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. > That's because the \u escape sequence is specific to ActionScript. Those sequences are replaced with the actual unicode characters (or some runtime sequence) and are not evaluated by the player. Use the HTML character codes instead: ryanm -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML
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: 'flexcoders@yahoogroups.com' 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: Wednesday, August 09, 2006 3:34 PM To: flexcoders@yahoogroups.com 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 = \u00A9</data> Inverted Exclamation Mark ; 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 ©. > > > > - 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: Wednesday, August 09, 2006 3:34 PM To: flexcoders@yahoogroups.com 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 = \u00A9 Inverted Exclamation Mark ; 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 ©. > > > > - 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___