|
From: Robert P. <in...@ro...> - 2005-09-08 21:34:45
|
This works:
Sys.println('<lyric-font font-family="Arial" font-size="10.6"
name="section"/>');
Did you have anything more complex, like CDATA or line breaks?
Also, I found that tabs will terminate a string unless escaped, in which
case the Output panel shows it as a space.
msg = stringReplace(msg, "\t", "\\t");
Hold the phone, just found another one. Literal backslashes "\\" need to be
escaped as well.
msg = stringReplace(msg, "\\", "\\\\");
This should happen before the other escapes, of course.
Here's a string testing the various characters so far:
Sys.println("one\rtwo\nthree's\tcompany\\\\//");
Desired output:
one
two
three's company\\//
If you don't escape the backslashes, they collapse to a single one in the
output.
Robert
-----Original Message-----
From: asu...@li...
[mailto:asu...@li...]On Behalf Of Luke Bayes
Sent: Thursday, September 08, 2005 1:53 PM
To: asu...@li...
Subject: Re: [Asunit-users] escaping special characters sent through
MMExecute
Hey Robert,
There has been a really persistent bug related to sending an XML string
through JSFL, I think it's root is in these special characters. Can you see
if a typical XML string will make it through this script?
If so, I'll update the sources with your suggestion this afternoon.
Thanks,
Luke Bayes
www.asunit.com
|