wilsonf1 Posted June 25, 2007 Share Posted June 25, 2007 when i first learnt to write files with asp, i got an error:Invalid procedure call or argumentfor having a £ symbol in my string which was a full webpage from a xml scrape....no bones after i removed it....im trying to do the same but getting the same error by i dont have any £'s in there.does anyone know which symbols cause it, a way to debug it, or a way to bypass it!!!cheers!!!! Link to comment Share on other sites More sharing options...
wilsonf1 Posted June 25, 2007 Author Share Posted June 25, 2007 just found this, enjoy:Still one more possibility is that you have unexpected characters in an FSO writeline call. I recently came across this when using MSXML to write out contents of dynamic ASP files into static HTML files. I had this: <% set fs = fso.CreateTextFile("blat.htm", true) fs.writeline xmlHTML %> When I ran this code, I received the above error. When I added the unicode format designator, as follows, everything worked fine: <% set fs = fso.CreateTextFile("blat.htm", true, -1) fs.writeline xmlHTML %> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.