Capturing returns and other special characters

Greetings,
I'm curious to know what is 'normally' done to capture
returns and other special characters from textareas. I want my user
to be able to insert 'control' characters into the text area to
allow them to provide some structure to the information they're
entering. At the moment, I'm processing the text char by char and
working out if it's an 'enter' or whatever, then appending a
'<br />' to the string before I store it and so on.
Is there a more established way to do this sort of
thing?

Use the replace function to replace either chr(10) or chr(13)
with a break tag. It's using cold fusion functions to accomplish
the same thing you appear to be doing manually.

Similar Messages

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • 10g won't recognize ellipsis and other special characters.

    I'm trying to insert data into both VARCHAR2 and CLOB columns that contains characters such as ellipsis and other special characters. Oracle doesn't recognize the characters and just converts it to garbage. Is there a way to make Oracle easily recognize these characters?
    For example, it won't recognize the following ellipsis in the string:
    "Here we are … right now."

    My bad...I did look at the national character set instead.
    When I performed theq query you posted, I got the following:
    NLS_CHARACTERSET
    WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    I hope this new information helps. Also, the tool involved is SQL *Plus, but I'm currently concentrated on getting the insert to work via JDBC. Thanks in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • E72: Swedish and other special characters not work...

    When I send mail through MfE, swedish and other special characters do not reach the recipient, they are just ignored. No blanks or nothing. Every word with a swedish character ends up one letter short.
    Before the firmware upgrade this was intermittent, happening only on about half of my mails.
    Now I upgraded yesterday, and it seems the problem is now permanent.
    Have seen similar posts from E75 and E90 owners, their problems seem to have been fixed by newer firmware.
    Our setup is: Exchange 2003, Portwise authentication.
    All other phone models work fine, like iPhone, E71 etc.
    /Sebastian

    After some testing I found out that if I use swedish chars in the subject line, it works fine. Even in the mail body.
    If I don't use swedish chars in the subject, they won't work in the body. I either get garbage or nothing where the swedish chars should be.
    The problem doesn't exist at all in my private IMAP mail account.
    Could someone who uses Mail for Exchange and have special chars in their alphabet (swedish, finnish, german, hungarian etc) pls tell me how it's working out for you?
    Message Edited by Seb_Martin on 28-Jan-2010 11:15 AM

  • Facelets: Issue with   and other special characters

    We are trying to use facelets for our JSF based project. If we use   in the included jsf pages these are not rendered properly in the resultant page. The resulting page eats all the  
    layout file:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    <f:loadBundle basename="bundle.MessageBundle" var="res" />
    <head>
    <title>
    <ui:insert name="title">Foo</ui:insert>
    </title>
    <sm:html-base target="_top" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="styles/default.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="scripts/main.js" />
    </head>
    <frameset rows="80,*,22" cols="*" framespacing="0" frameborder="no" border="0">
    <ui:insert name="header">
    <frame name="header" src="common/header.jsf" scrolling="no" noresize="yes" />
    </ui:insert>
    <frameset rows="*" cols="187,*" framespacing="0" frameborder="no" border="0">
    <frame name="navigation" src="tree/tree.jsf" scrolling="auto" />
    <ui:insert name="content">
    <frame name="content" src="" scrolling="yes" />
    </ui:insert>
    </frameset>
    <ui:insert name="footer">
    <frame name="footer" src="common/footer.jsp" scrolling="no" noresize="yes" />
    </ui:insert>
    </frameset>
    <noframes>
    This browser does not support frames
    </noframes>
    </html>
    ~
    In header.jsf
    <td align="right" valign="middle" nowrap="yes">Start  <img src="images/seperatorGrey.gif"/>  Tools  <img src="images/seperatorGrey.gif"/>  Support  <img src="images/seperatorGrey.gif"/>  Logoff  </td>

    Thank you both for replies ....
    Since these urls are generated through code, what is the best way to go about it ?
    Could you please explain a little about using of hash map in this case?
    and excpet using escape characters, is there any other way to do it ?
    Thanks again

  • LAMBDA and other SPECIAL CHARACTERS

    Hello,
    Does someone know how to put in a lambda character? I have Framemaker 7.0 and the document I'm working on is non-structured. OS is Win XP Pro. All help and suggestions are greatly appreciated!!!

    Hi Bear,
    You could also try using the Equations pallete to insert the lambda symbol in para text. Here are the steps you could try:
    1. Place the cursor where you want to insert the character.
    2. Select Special > Equations
    3. From the Equations drop-down list, select New Small eqaution. An Eq frame is added with a ? mark.
    4. Click the lambda symbol from the buttons in the Equations palette. ? is replaced by the lambda symbol.
    5. Shrinkwrap the equation shortcut Esc m p.
    This should insert just the lambda character inline with the para text.
    Hope this helps.

  • I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16   digit and 4 special characters. No combination of numberic, alphanumeric, special characters works. Help

    I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 +  digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!

    I have set up my work Exchange email/calendar. After setting up I am getting passcode expired message and asking for changing the passcode with a 16 +  digit and 4 special characters. No combination of numberic, alphanumeric, special characters is working. Help!!

  • Vbscript to rename files and replace special characters

    Dear Exprt,
    would you please help to add addtional requirement for rename and replace special characters for file
    by the below script i can re name.
    strAnswer = InputBox("Please enter folder location to rename files:", _
        "File rename")
        strfilenm = InputBox("Enter name:", _
        "Rename Files")
    Set FSO = CreateObject("Scripting.FileSystemObject")
    Sub visitFolder(folderVar)
        For Each fileToRename In folderVar.Files
            fileToRename.Name = strfilenm & fileToRename.Name
        Next
        For Each folderToVisit In folderVar.SubFolders
            visitFolder(folderToVisit)
        Next
    End Sub
    If FSO.FolderExists(strAnswer) Then
        visitFolder(FSO.getFolder(strAnswer))
    End If
    [email protected]

    Thx would you please look below what wrong in its run  nothing happend no error
    strAnswer = InputBox("Please enter folder location to rename files:", _
        "Test")
        strfilenm = InputBox("Enter name:", _
        "Rename Files")
    Set FSO = CreateObject("Scripting.FileSystemObject")
    Set regEx = New RegExp
    'Your pattern here
    Select Case tmpChar
    Case "&"
    changeTo = " and "
    Case "/"
    changeTo = "_"
    Case Else
    changeTo = " "
    End Select
    regEx.Pattern = tmpChar 
    Sub visitFolder(folderVar)
        For Each fileToRename In folderVar.Files
            fileToRename.Name = strfilenm & fileToRename.Name 
            fileToRename.Name = regEx.Replace(fileToRename.Name, tmpChar)
        Next
        For Each folderToVisit In folderVar.SubFolders
            visitFolder(folderToVisit)
        Next
    End Sub
    [email protected]

  • Getting rid of single quotes and other bad characters

    Hello All-
    I am writing a servlet that takes a value from a form, and saves it to a database. However, when single quotes, and other illegal characters are entered, i get all sorts of errors. I am certain their is some function that would take care of all of this.
    Help!

    Hi there,
    When you try to insert single quotes into the database it gives an error or problem because a single quote is a reserved character in the database.
    If you want to store a single quote or any other character that is reserved in the database then you need to find out how to escape that reserved character.
    One option is to use the single quote twice, so instead of ' , use '' (not double quote but , type single quote twice).
    Another option is to use HTML entity code for single quote
    "Message was edited by:
    appy77

  • Dynamic Images in PDF and Escaping Special Characters

    I used the following to create my own PDFs with dymnamic images:
    http://marcsewtz.blogspot.com/2012_02_01_archive.html (Dynamic Images in PDF - What 32k Limit? )
    I have installed this application on Oracle's free workspace to test.
    The issue I am having is that when there is a special character in the description, such as <>'"& then the the PDF will not open. I have tried using the dmbs_xmlgen.convert to convert the description but haven't had any luck.
    I'm a complete novice with xml. Any help with this is greatly appreciated.
    Thanks,
    Glen

    I have been able to find a solution, but it's not completely perfect. I have changed the "description" field as follows:
    XMLCdata(replace(description,''&'',''and'')) description,
    The characters greater than (>), less than (<), single qoute('), and double quote (") can now all be in the description and will not cause errors. For some reason, I couldn't get the & not to give an error no matter what I tried, so I just replaced the & with the word "and". This solution will work for my needs, but it would be nice to be able to get the & to display.
    Does anyone know of a way to get the & to display correctly?
    Thanks again,
    Glen
    The complete code I am using is below:
    declare
    l_print_layout clob;
    l_xml_data clob;
    begin
    -- load print layout from database
    for c1 in (
    select layout from eba_pdfimg_layouts where id = :P1_LAYOUT
    ) loop
    l_print_layout := wwv_flow_utilities.blob_to_clob(c1.layout );
    end loop;
    -- generate XML data
    for c2 in (
    select dbms_xmlgen.getxml('
    select
    id,
    file_name,
    mime_type,
    XMLCdata(replace(description,''&'',''and'')) description,
    -- description,
    blob2clobase64(image,''Y'') image
    from eba_pdfimg_images
    ') xml_data from dual
    ) loop
    l_xml_data := c2.xml_data;
    end loop;
    -- download print document
    wwv_flow.g_page_text_generated := true;
    apex_util.download_print_document (
    p_file_name => 'image_demo',
    p_content_disposition => 'ATTACHMENT',
    p_report_data => l_xml_data ,
    p_report_layout => l_print_layout,
    p_report_layout_type => 'rtf',
    p_document_format => :P1_FORMAT
    end;

  • Reading and writing Special Characters to Oracle DB

    Hi All,
    I need to insert data from CSV to Oracle DB and then use the same data for creating XML file in UTF-8 format.
    I have few fields in the CSV file which has � and � special characters. I'm able to read � and write in UTF-8 , but the same procedure is resulting in some other ascii character for �.
    While reading data from CSV file :
    Reader l_fileReader = new InputStreamReader(p_in,"ISO-8859-1");
    Can anyone help me.
    Thanks,
    Ramki.

    Does anyone has some pointers or clues?

  • How to define and use special characters

    I need to define some special characters (such as an up-arrow and a down-arrow). I need to add these characters to Strings along with "normal" ASCII characters, and finally display the Strings with graphics.drawString().
    Can anyone get me started or tell me where to look? I looked at the archive but apparently I'm not using the correct keywords.
    Thanks in advance, Rick

    public void paint(Graphics g) {
            super.paint(g);
            g.drawString("up arrow: \u2191 down arrow: \u2193", 100, 100);
        }Works for me.
    See www.unicode.org for code charts.

  • Identify and show Special Characters in the SQL result set

    Hi all,
    The values in a column (SC - colunm name) has special characters. For eg. 496+>9, 223'32, 167&45. Is there any function in Oracle that would give me the below result when i query that colum.
    select SC from xyz;
    Result should be as follows:
    496+&gt;9
    223&apos;32
    167&amp;45
    Thanks in advance.

    yes it will have numbers and characters also along with the special characters
    The results from my previous post was wrong. Here is the expected results;
    496+&gt;9
    223&apos;32
    167&amp;45
    can you give me the exact query to get the above resultant.
    Thank you

  • HT1146 Just started using Apple mail.  Trying to set up email folders with Company/Company P.O. and it won't work.  Went to Edit and added special characters and it still won't work.  What am I doing wrong or can this not be done.

    Just started using apple mail.  Trying to set up email folders with example:  Company/Company P.O.  It won't let me do it.  It will not allow / or . .  What am I doing wrong or can this not be done.  I tried to use the Edit menu and adding the special characters, but it still won't work.  Please advise.  mmather

  • Forms and Czech special characters

    Hello everybody,
    I created a form to update calendar events. I used Czech language to made labels of inputs in the form. Czech special characters aren't display correctly. Others applications, pages and CAs are OK. Just I have problems with forms. The characters are replaced with senseless characters and if I save the form again, the sensless characters are added. So I have longer and longer strings there.
    I found that the labels are saved in the table "WWA_FORM_ITEMS$". So I changed them directly in this table. But you know, it's annoying.
    Does anybody knows if there is more comfortable solution?
    I'm using Portal 3.0.8 and database 8.1.7.
    Thanks for any answer. You can use also this address: [email protected]
    Petra :)

    again.
    Hi Petra,
    i've had the same problem with german characters. As far as I know it is a bug
    (either in Portal or in Interner Explorer).
    You can use Netscape to design your forms or (that's how I do it) use the
    html equivalent for your letter. For example instead of "&auml;" (or d) use "& a u m l ;"
    (without the blanks - I hope that this will be displayed correctly).
    Regards Oliver

Maybe you are looking for

  • Install oracle client 32 bits on 64 bits windows

    We need to intall Oracle driver for OLEDB on a SQL server box. The SQL server is windows 2008 R2 and SQL server 2008 R2, 64 bits. But because we have some SSIS packages that need to run in 32 bits,(for example the source file is the Excel), so we are

  • Printing templates not functioning correctly.

    I printed (2) 7x5 Prints using template browser. The top print is getting clipped about a quarter inch. In the top left-hand corner both horizontal boxes are stating that the size is 7x5.  I have double checked all the settings. Using a Epson 4900 pr

  • IDVD NO SOUND

    I know this topic has been covered before, but I don't think anyone has found a solution. I have created a school video in iMovie. JVC video camera set on 16 bit. If have used this same format many, many times. I set my chapters and then send it to i

  • Problem expanding my mac partition after deleting a second partition

    I had created a second mac partition to test out OS X Yosemite but after deleting it, my main mac partition is missing about 36 gb of space and when I try to resize the mac partition to fill up the grey space it won't let me. How can I fix this? Any

  • Nokia maps 3.06 hangs

    I'v updated nokia maps to 3.06 and then updated the maps to version 0.2.41.11. Now if I start the maps in offline or online mode it tries to get a GPS lock and after 10-15 seconds hangs and the cell restarts. This keeps happening until either I come