It would be fantastic if you could share. Were you using AS3? If not, what did you do for regex? I tried to figure out the as2lib project's implementation of regex but couldn't get a simple replaceAll to work....

Thanks!

Rob Emenecker wrote:
Hi Andrew,

I don't know of a class that will help with this. Extended characters need
to be Unicode encoded in the HTML stream for Flash to properly display them.
I've had to do exactly what you probably don't want to do... that is, scrub
them out.
I had a project that wrapped up late summer last year, where I had to
contend with a fairly simple set of characters: single and double
opening/closing quotes, em-dash, en-dash, copyright, registered trademark,
etc.
When I get back to the office on Monday, I'll check to see what we did for
handling them in HTML text. IIRC, we ran regular expressions on the HTML
text swapping mnemonic style character entities for Flash Unicode, e.g.,
\u000a.

...Rob

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Sinning
Sent: Saturday, January 12, 2008 10:39 PM
To: Flash Coders
Subject: [Flashcoders] mdash in htmlText

I'm running CS3 with AS2.

I'm loading in some html text into a TextField with html set to true. It looks like   is working correctly, but other chars such as —
are just being rendered literally, as "—".  This is even with the
entire character set embedded.

Do I have to scrub all this stuff out?  Is there a class to do this?

Thanks.
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to