A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to convert HTML entities (é è etc.) returned by XML?

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    5
    The XML returned by my program comes with HTML entities such as 'á', 'ç', 'ã', etc.

    How do I make Flash to show these correctly as 'á', 'ç' or 'ã' ? Such HTML entities are just passed AS IS to the output text.

    Even if I specify that the dynamic text variable shall respect HTML formatting, Flash apparently only respects simple formatting such as <p>, <font>, <a>, but passes all other HTML entities as they are.

    Should I write a function to convert every entity in its 'accented' form?

    TIA,
    Paulo

  2. #2
    Junior Member
    Join Date
    Jun 2001
    Posts
    5

    Corrected text (hope so...)

    The XML returned by my program comes with HTML entities such as 'aacute', 'ccedil', 'atilde', etc.

    How do I make Flash to show these correctly as 'á', 'ç' or 'ã' ? Such HTML entities are just passed AS IS to the output text.

    Even if I specify that the dynamic text variable shall respect HTML formatting, Flash apparently only respects simple formatting such as &lt;p&gt;, &lt;a&gt;, &lt;font&gt;, but passes all other HTML entities as they are.

    Should I write a function to convert every entity in its 'accented' form?

    TIA,
    Paulo
    </pre>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center