Carriage Returns, Line Feeds, and Tabs in Text Area

I am having users copy and paste data from an Excel spreadsheet into a textarea on a BSP page.  When they submit this, since there are tabs and line feeds in the data, the BSP does not recognize the data.  The value in the field comes through as blank. When I manually type something into this field, with out any carriage returns, tabs, etc., the value does not come through as blank?  Does anybody know how to get around this?

HI
Iam uploading the data from application server(AL11) to other server.
In the GLPCA-SGTXT(Table) iam having some text like 'This is good ##'.i was downloded some other data with this text('This is good ##') by using report program in to aplicationserver(AL11) and from there iam uploading that data into other server.
But here the problem is in the UNIX, it was showing some problem.
That is actually it need to show the format like:
001 256 786 This is good## 459786
But here it was showing like:
001 256 786 This is good^M
459786
So here '459786' is coming to next line. But i need this '459786' also in the same line.
I am not sure if it is possible to remove CR and LF's using the code the program is written in, but that is what we need to do.   In Unix  ^M is the CR (Carriage return), but I am not sure what LF is?

Similar Messages

  • What is escape character for for Carriage Return, Line Feed, Form Feed

    Hi
    I need to a text file which should have following characters
    Carriage Return, Line Feed, Form Feed
    How do i insert them in a string
    i know "\f" is carriage return,
    but what are characters for line feed and form feed
    Ashish

    uncle_alice wrote:
    jverd wrote:
    remus.dragos wrote:
    I forgot that it does not exist in Java. A good thing
    from my point of view.Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    >
    >
    >I forgot that it does not exist in Java. A good thing
    from my point of view.
    Running the following makes my computer beep.
    public class Bell {
    public static void main(String... args) {
    System.out.println("\u0007");
    } Sure, sending a BEL character to the console rings the bell, but that has nothing to do with Java. Anyway, I think he meant Java doesn't support the \a escape sequence in string and char literals.
    Ah, I thought he was saying Java doesn't support ringing the bell.

  • How do we remove Carriage Return (line feed) inserted in FCC files

    Hi Experts,
    The file that we generate has a carriage return at the end.
    Is there any way in which we can remove this carriage return (line feed) from the file?
    The FCC parameters used at our end are as below:
    structure.filedNames:
    structure.fieldFixedLengths:
    structure.fixedLengthTooShortHandling: Cut
    Kindly tell us a solution ASAP.
    Thanks & Regards
    Dhwani

    Dear All,
    Let me elaborate on my query
    Consider that the files output looks like below:
    12  34  45  545 5454 UL
    23  33  43  434 4545 FG
    45  44  44  586 6535 GM
    Now there is an extra line(Carriage Return) getting inserted after the last line 45  44  44  586 6535 GM  which is not required at our end.
    The cursor of the file instead of stopping on the last character M, points to the next line.
    Can you please suggest how to remove this extra line from the files.
    I dont understan how will remove context help in this case.
    Regards
    Dhwani

  • XI: Remove Carriage Return +Line Feed at end of XML

    Hi All,
    Scenario
    Currently, we have a JMS --> XI --> IDOC scenario. The Sender Service always sends a CRLF (Carriage Return & Line Feed+) without fail at the end of each xml file once this non-sap system finishes its transaction.
    Example
    <STARTOFXML>
    Data------
    </ENDOFXML>CR+LF
    Question
    Is it possible to remove this from XI JMS Sender Adapter? From the receiver Service (JMS) this is possible.
    Cheers!
    Sulaiman

    Why do you want to remove this? Does this lead to errors?
    Regards
    Stefan

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • How to insert a carriage return/line feed in a TextEdit without using wrap

    Hi,
    The string that I want to pass to the textedit is
    "Order Notes : bla bla bla
    Shipping notes : bla bla bla"
    The length of Order notes and shipping notes can vary.
    I am using wrapping. But I need to insert a line feed just before Shipping Notes so it comes on a different line inside the textedit box.
    How do I achieve this?
    Thanks in advance,
    Sachin

    Good thinking, Craig
    I didn't think of this large textarea being present there, just waiting for a question like this ...
    To sum it up for the lazy ones (cause looking at the examples is always worth it, so go do as Craig told ya g!):
    CONCATENATE
    `Order Notes : bla bla bla`
    `Shipping notes : bla bla bla`
    INTO text SEPARATED BY cl_abap_char_utilities=>cr_lf.

  • Carriage Returns & Line Feeds in XML documents

    Does anyone know why the PL/SQL XML parser will NOT work with Carriage Returns (0x0D) within the XML document?
    Currently I'm having to strip them out, leaving just the Line Feed (0x0A).
    I only realised this after looking at the family.xml example document.
    T.I.A.
    Geoff

    I forgot to mention that I'm running Oracle 8i on Windows NT.

  • How to insert a Carriage Return + Line Feed inside a TextView UI element ?

    Hello All,
      Does anyone know how can I achieve the above scenario ? I have a string variable that collects and appeneds text messages from various BAPI calls. At the end of the process, the contents of this variable will be mapped to a textview. Problem is, the length of the string collected is way too long and hence not very readable.  I am not able to find a way to introduce a CRLF after each message is read and appended. Can anyone advise ? Thank you.
    from
    Kwok Wei

    Hi Renjith,
      So far I manage to get find a walk-around to the problem by using the TextEdit as what you have suggested. This works fine... till when you try to print it out. As you see, during printing, I need to remove the vertical scrollbar and ensure that all the text are properly displayed and I do not see any visibleFooter = false option (similar to that of a table) available to the TextEdit.
      If anyone has any suggestions or a more feasible walk around that allows me to print the entire contents in the TextEdit, that will be greatly appreciated
    from
    Kwok Wei

  • Need help on carriage return / line feed...

    Hi,
    I have a variable defined for a new line, e.g. <CFSET
    NewLine = "#chr(13)##chr(10)#">, that I use as a break between
    lines of text within CFMAIL.
    <CFSET Message = NewLine & "Product Name: " &
    Trim(GetProduct.ProductName) & NewLine>
    <CFSET Message = Message & "Product Description: "
    & Trim(GetProduct.ProductDesc) & NewLine>
    <CFSET Message = Message & "Product Color: " &
    Trim(GetProduct.ProductColor) & NewLine>
    <CFMAIL FROM="[email protected]"
    TO="[email protected]" SUBJECT="Product
    Info">#Message#</CFMAIL>
    If the email is sent to and open up in Microsoft Outlook
    account (mailbox), the "Product Description" line of text would
    stay on the same line as the Product Name (when
    LEN(GetProduct.ProductName) > 50). In other words, the NewLine
    variable is not doing the break. The code works with yahoo or
    hotmail account though.
    Any advice is greatly appreciated.
    Thanks in advance!

    The trick is to add 3 blank spaces (" " ) at the end of each
    line but before the break (NewLine) such as these:
    <CFSET NewLine = "#chr(13)##chr(10)#">
    <CFSET Message = NewLine & "Product Name: " &
    Trim(GetProduct.ProductName) & " " & NewLine>
    <CFSET Message = Message & "Product Description: "
    & Trim(GetProduct.ProductDesc) & " " & NewLine>
    <CFSET Message = Message & "Product Color: " &
    Trim(GetProduct.ProductColor) & NewLine>
    <CFMAIL FROM="[email protected]"
    TO="[email protected]" SUBJECT="Product
    Info">#Message#</CFMAIL>

  • Carriage Returns / Line Breaks & PDF

    I have a requirement to display a customers address in 1 column of a PDF report.
    The address is stored in the RPD as Address1, Address2, etc. etc.
    I use the answer of the question "Carriage Returns / Line Breaks" as a basic startup.
    ( Question Registered the 02/24/10 from user12673225 )
    I get a great result in the HTML report.
    But, when I print the report in PDF the HTML control codes appear in the PDF report.
    e.g.
    LTHEA A | P.O. BOX 877 *<br* | KY | VERNON A 100000479 |
    VERNON | /> GRAND...........|....|.............................|
    ...........| CAYMAN.............|....|.............................|
    ...........| KY1-1103 *<br*......|....|.............................|
    ...........| /> CAYMAN.........|....|.............................|
    ...........| ISLANDS.............|....|.............................|
    Presently I generate the report in HTML then I convert it in PDF format.
    Is there a way to print the report directly in PDF without the html control appearing in clear in the pdf file. Is is possible to do the job in one step only?
    Edited by: user9214078 on Feb 24, 2010 11:42 AM

    Hi Will,
    The [   instead of   <  does not work.
    The character "[" is not recognized as an HTLM control code.
    It worth the try.
    Thanks
    Gilles.

  • My widget browser keeps showing "failed getting widget feed" and keeps saying "failed getting widget feed and make sure you are connected to the internet" when I am connected to the internet. How do I fix this?

    my widget browser keeps showing "failed getting widget feed" and keeps saying "failed getting widget feed and make sure you are connected to the internet" when I am connected to the internet. How do I fix this?

    Widget Browser is gone.  Adobe pulled the plug on it quite a while ago.
    See this related discussion from earlier today.
    Widgets a Gone Gone
    Nancy O.

  • JeditorPane text selection problem due to line feeds and carriage returns

    Hi folks,
    I have a jEditorPane (text/plain) that contains a document in which the user has highlighted some text. I want to pull the selected text from the pane, do some processing on it, and then put the altered text back in the same position.
    First I get the starting and ending position of the highlighted text
    int mySelStart = myJEditorPane.getSelectionStart();
    int mySelEnd = myJEditorPane.getSelectionEnd();Then I get all the text from the pane and (in theory) strip out the portion the user highlighted
    String myPaneText = myJEditorPane.getText();
    String mySelectedText = myPaneText.substring(mySelStart,mySelEnd);But the text string in mySelectedText never matches what the user originally highlighted. The starting and ending positions are off by the number of carriage returns that proceed the highlighted text in the document. It appears that while in the jEditorPane Java treats the carriage return as one characters, but once the info is in the myPaneText field Java treats the carriage return as two characters.
    Has anyone encountered this before? Am I doing something wrong? To fix the problem I'm looping through the entire document to find out how many carriage returns proceed the highlighted text, but there has to be an easier way.
    Thanks

    It appears that while in the jEditorPane Java treats the carriage return as one
    characters, but once the info is in the myPaneText field Java treats the carriage
    return as two characters.Correct on a Windows platform. Check out my posting here for a one line solution:
    http://forum.java.sun.com/thread.jspa?forumID=31&messageID=1464594

  • Carriage return in feed item description?

    As the title says, is it possible to use carriage returns in a podcast feed item description? I'd like my description to list the show topics... something like:
    Show topics:
    1. Topic 1
    2. Topic 2
    Possible? I'm currently using Podcast Maker to generate my feeds. Does that make it any easier or more difficult?
    Aaron

    You can just put a newline character inside the description field and iTunes will show the newline in the Podcast Information Panel (click the "i" button for the episode to see this panel).
    You shouldn't just put a <BR> tag in there though. If you want to put any kind of html tag in the description field, you must either escape them with a &lt; and &gt; tags or
    with a <![CDATA[ ]]>.
    So some field results I found out through experimentation with iTunes:
    First what works:
    - Newline characters work.
    - <BR> works.
    - <![CDATA[line 1<BR>line 2]]> works too.
    What doesn't work:
    - <BR>
    - <BR/> and its escaped forms such as &lt;BR/&gt;
    I'm not sure how other podcast clients will treat the newline character though.
    - Andy Kim
    Potion Factory

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • Find the LINE FEED and replace it.

    Hi
    I am using ORACLE 11g R2. I am having some text data in a variable as below :-
    Variable = V_TEXT
    V_TEXT :=
    '/u01/oracle/data/file1.txt
    /u01/oracle/data/file2.txt
    /u01/oracle/data/file3.txt'I want to place an '|' (pipe symbol) at the end of each line. So the expected output is as below :-
    '/u01/oracle/data/file1.txt|
    /u01/oracle/data/file2.txt|
    /u01/oracle/data/file3.txt|' I tried with replace() function and replaced return character i.e. CHR(10) with '|' but it gives me an wrong output and also at the end of last line we dont have an return character.
    after searching a lot on internet I found that i can do this with the help of regular expression.
    As far as i have studied : -
    The line feed character is the last character in the line or we can say it is end of line. This character is noted in oracle as 'x0a'
    I want to replace this character in every line and place an '|' symbol.
    can anyone guide me how to do it ??
    Thanks in advance.

    Aha... Now that is a different expected output as in your original post ;-)
    One way of doing it could be something like this:
    declare
      v_text varchar2(32767) := '/u01/oracle/data/file1.txt
    /u01/oracle/data/file2.txt
    /u01/oracle/data/file3.txt';
    begin
      v_text := regexp_replace(
                   regexp_replace(v_text,chr(10)||'\s*'||chr(10),chr(10))
                 ,'$','|',1,0,'m'
      dbms_output.put_line(v_text);
    end;
    /Inner regexp replaces "linefeed followed by zero or more whitespace followed by linefeed" with a single linefeed. So this removes the blank lines.
    Then the outer regexp takes care of the | characters.
    (It might be possible to wrap it up in a single regexp, though I can't think of a way just off hand ;-) )

Maybe you are looking for

  • DATA QUALITY connection on INGRES

    Post Author: ryefrancis CA Forum: Data Quality and Data Insight Hi, Would like to ask if any you guys have any idea on the error prompt "NO COLUMNS SHOULD BE RETRIEVED FOR THIS TABLE. A POSSIBLE REASON IS THAT YOU DO NOT HAVE SELECT PERMISSION FOR TH

  • IPod screen blank when turned on

    When I turn on my iPod classic all I get is white when I should get the menu or the now playing screen. I've tried hooking it up to iTunes, resetting it, and restoring it. When I reset it, it's the same but it shows up grey. The blacklight still goes

  • IMac refuses to recognize USB with flash card

    After I plugin my USB flash card holder, my iMac only occasionally recognizes it and then an error message comes up saying that the flash card was not properly ejected. The message disappears and so does my flash card! I may remove and reinsert it se

  • How to delete similar type of object present in vector

    i am having a vectors which has many elements like scratchA:MYRAMA:rama:t0001p1.qo@proc_0:H scratchA:MYRAMA:rama:t0001p1.qo@proc_0:H scratchB:MYRAMB:ramb:t0001p2.qo@proc_0:M i want to delete all objects which have string value common like 1 and 2 abo

  • Which is better ,oci or occi ?

    who can tell which way is better for developing ,oci or occi ? Regards.