In JavaScript this was a cross-browser compatibility issue, so both were used, but there are numerous instances in different languages where I see both printed out together as \r\n. Is this still the generally excepted norm that you should just always use both, or is there ever a time where languages understand both and you end up with a...
I've got a JSP page with a piece of Javascript validation code which limits to a certain amount of characters on submit. I'm using a <textarea> so I can't simply use a length attribute like in a <input type="text">.
I use document.getElementById("text").value.length to get the string length. I'm running Firefox 3.0 on Windows (but I've ...
Hi! I have a script that is appending new fields to an existing CSV, however ^M characters are appearing at the end of the old line so the new fields end up on a new row instead of the same one. How do you remove the ^M characters from a csv file using Perl?.
...
I need to post multi-line data via a hidden field. The data will be viewed in a textarea after post. How can I post a newline/carriage return in the html form?
I've tried \r\n but that just posts the actual "\r\n" data
<input type="hidden" name="multiline_data" value="line one\r\nline two" />
Is there a way to do this?
...
When I create a TextField in AS3 with multiline set to true and equate the text to say:
"Hola \r hola"
I am unable to retrieve the index position of \r using indexOf function, it always returns -1
Does anyone know what I'm doing wrong?
var txt:TextField;
txt.multiline = true;
txt.text = "Hola \r hola";
//txt now renders fine with t...
It seems like just putting a linefeed is good enough, but I know it is supposed to be carriage return + line feed. Does anything horrible happen if you don't put the carriage return and only use line feeds?
This is in ANSI C and not going to be redirected to a file or anything else. Just a normal console app.
...
There is nothing like the 43rd day of your life spent tracking down issues due to CR/LF, different slash types, or a Big Endian vs. Little Endian bug. These issues are 20 years old and they make me feel as though humans are still cavemen. Are we simply replacing these old issues for new ones? XML has helped but aren't these issues cos...
I really don't want to give up on vim again, but every time I try to learn it something gets in the way.
I'm using gVim on Windows. My code shows ^M characters at the end of lines. I used :set ff=dos to no avail. The ^M characters remain for existing lines, but don't show up for newlines I enter. I've switched modes to mac (shows ^J c...
What is the simplest way to remove all the carriage returns /r from a file in Unix?
...
Users are pasting text from Lotus Notes into my VBA application. This is then being stored in Access. Sometimes the pasted text includes what I assume is a carriage return which, when pasted into a single line form control, is displayed in the application's forms as ¶.
However, as this won't paste in to the VBE, I am unable to add thi...
Hi this might seem like a weird question. Anyway, I'm generating some PDF file on the fly using PHP and some third party code I found. My problem is I need to insert line breaks in some part of the text that will be inserted in the PDF file. Something like:
$pdf->InsertText('Line one\n\nLine two');
So it prints
Line one
Line two
I k...
Guys how do I remove the carriage return character(\r) and the new line character(\n) from the end of a string?
...
Hi,
I'm using a javascript function that receives some html code that was included using php.
It is not html in a php string but an html file with .php extension.
As the html code is sent as a parameter to the js function it can't contain carriage returns. The problem is that writing big blocks of html in a single line is terrible, I w...
Can I expect line breaks in text boxes to be one of the common line break conventions or does it depend on the user's OS?
i.e.: CR or CR+LF or LF
...
I have a query that exports data from two columns of each row into a file. In the file data from each column should be separated by carriage-return, something like this:
row1column1
row1column2
row2column1
row2column2
row3column1
row3column2
I tried using char(13):
SELECT CONCAT(column1, char(13), column2) FROM my_table INTO outfile '...
In a textbox of a userform in VBA, I would like to enable the feature where the user can add a new line in the textbox by pressing the "Enter" key on the keyboard. However, I had trouble finding a UI option in the UI editor to achieve this. Is this even allowed in VBA userforms? Thanks in advance for the advices and answers.
...
For example text file:
Speak friend and enter
using a Perl script to remove whitespace and replace with carriage-return
Speak
friend
and
enter
...
When I open a text file in Notepad, it shows a blank line if there is a carriage return at the end of the last line containing text. However, in Vim it does not show this blank line. Another thing I've noticed is that the Vim editor adds a carriage return to the last line by default (even though it doesn't show it). I can tell, because i...
SQL query for a carriage return in a string and ultimately removing carriage return
I have some data in a table and there are some carriage returns in places where I don't want them. I am trying to write a query to get all of the strings that contain carriage returns.
I tried this
select * from Parameters
where Name LIKE '%"\n" %'
A...
Possible Duplicate:
What is the difference between \r and \n?
I understand that it's different for each Operating System, for example, "\r\n" may be expected in Windows, "\n" may be expected in Unix and "\r" may be expected in Macs.
What are the differences between these two (or three, if you want to include "\r\n") escape se...