I think this is a step in the right direction tho: fputs($fp, addcslashes("{ mystring }", "[]{}")); when I use that method, all the the characters are properly shown on irc, but each word is shown on it's own line, that's the only problem. and then I tried using addcslashes($varn...