I have started a website that allows AppleScripters to upload script libraries and the script source is displayed on the website for others to see.
Unfortunately the escape character is the same as in Perl. So whenever someone uses the \ then it gets stripped out when committed to the mySQL database. I have tried several solutions.
I tried:
$scriptSource =~ s/\\/\\\/g;
Which of course did not work. Then I tried:
$scriptSource =~ s/\\/&\#92/g;
Which of course also does not work. I have tried using \ any number of times. None of it works. I see that Perl Monks allows for escaped characters to display properly. How do I?
You can see what I mean by going to
http://applemods.citizenstrange.com/getMod.cgi?script_ID=16. The testMod's one line should read:
set theTestVar to "\""
Thanks for your help.
CiceroLove
Fates! We will know your pleasures: That we shall die, we know; 'Tis but the time, and drawing days out, that men stand upon. - Act III,I, Julius Caesar