Ok, I'm almost at my wits end here - I've searched everywhere for an answer but I can't find it. I'm working on a newsfeeder on Sumea so any website can grab news/jobs headers from this site. I've done all the hard stuff already (the headers are spat out in a text file and it's automated so this happens 3 times a day by itself etc)... but I'm stumped at this simple thing. I can't get a darn carriage return happening. None of these will give me a carriage return for example.
<%=chr(10)%>
<%=chr(13)%>
<%=chr(10) & chr(13)%>
<%=vbcrlf%>
<% response.write "Hello," & chr(10) & "Dolly" %>
I can't use
(it's for a txt file, not a html page.. Javascript is going to read the txt file), and the ascii equivalents of carriage return #13; and line feed #10; doesnt work either . Any ideas??
Yeh, <%=chr(13) & chr(10)%> is a carriage return and line feed.. Anyways, I figured out what the problem was. The carriage returns were in there, it's just with the way I was looking at them (printing the results on an asp page), you wouldnt see them. Saved the results as a txt file on the server, and the carriage returns were definately there.
0x0d 13 '
' Carrige Return
0x0a 10 '
' Line Feed
In DOS/Windows you need a Carrige Return and then a Line Feed, so 0x0D then 0x0A. In Linux/Unix it's only a line feed, and on Apple/Mac it's only a Carrige Return...
But for ASP scripting I have no real idea, you could insert the character '
' or something, since that works in C & Co... ?