Single and double quotes entered in form field cause corruption?

I am creating a database change request system using in APEX 2.2 and the main form has a description field (clob) and a API_description field (varchar2(4000)) that are text area fields on the page. The form seems to have trouble when the string data entered into the text area page items on the form contain single and double quotes.
<br><br>
I have pasted my test data below in this problem description(this is not true sql but it gets the point accross). I use the wizard created insert process to get the data into the db from the text fields in the wizard generated form, then use the wizard created fetch process to get the data back out and rendered on the same form. When I use the test data below, sometimes a few characters dissappear from my input data on the way out, sometime form fields go away, and their html is interspersed with the previous form field's data on the page. And I get different results on different tests with the same data.
<br><br>
Do I have to do something special for a vanilla htmldb text page item on a form to be able to receive single and double quotes in the string input in order to avoid that string data confusing the processing on the way in to the Database or on the way out for rendering?
<br><br>
Do I have to escape the characters? How do I do this?
<br><br>
The "varchar2(1) := ‘A’" part of the below TEST DATA string seem to cause the most trouble. The behavior is erratic - sometimes the pattern works, sometimes html is interspersed in one place, sometimes another (on the way back out)
<br><br>
START TEST DATA:
Add column pcl3_data_ind varchar2(1) to edc_tran,edc_log, edc_recreate_tran table
Or
Create a file with following sql in it
Insert into sometable values(‘A’,sysdate);
Or
create new table as follows
create table “someschema”.“sometable”
(id number not null,
Name varchar2(20) not null,
Join_date sysdate
Active varchar2(1) := ‘A’
END TEST DATA:
<br><br>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Here is an example of the test data being displayed after being fetched back out of oracle (this will look like gibberish when rendered in the forum system (end of problem description except for example):
<br><br>
env
Add column pcl3_data_ind varchar2(1) to edc_tran,edc_log, edc_recreate_tran table
Or
Create a file with following sql in it
Insert into sometable values(‘A’,sysdate);
Or
crete new tableas follws
crate table “somesca”.“sometable”
har2(20) not null,
Join_date sysdate
Active varchar2(1) := ‘A’
woextarea>
<a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:371:204538675714370::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:1034609472735510,104,2');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></td></tr><tr><td nowrap align="right"><label ...

I found a good php related post that has a nice set of the potentially problematic characters (this is in the context of word pasted into IE I think). I am pretty confident that at least single curly quotes do not work well in apex 2.2). I would not be surprised if some of the others were trouble as well.:
http://lists.evolt.org/archive/Week-of-Mon-20030602/141975.html
here is the list
$trans_tbl[chr(34)] = '"' ;          //      quote
          $trans_tbl[chr(38)] = '&' ;          //      ampersand
          $trans_tbl[chr(60)] = '<' ;          //      less-than
          $trans_tbl[chr(62)] = '>' ;          //      more-than
          $trans_tbl[chr(128)] = '€' ;     //      euro
          $trans_tbl[chr(129)] = '€' ;      //     euro
          $trans_tbl[chr(130)] = '‚' ;      //     low quote
          $trans_tbl[chr(131)] = 'ƒ' ;      //     florin
          $trans_tbl[chr(132)] = '„' ;      //      double low quote
          $trans_tbl[chr(133)] = '…' ;      //     ellipsis
          $trans_tbl[chr(134)] = '†' ;     //     dagger
          $trans_tbl[chr(135)] = '‡' ;      //     double dagger
          $trans_tbl[chr(136)] = 'ˆ' ;      //     circumflex
          $trans_tbl[chr(137)] = '‰' ;      //     per thousand
          $trans_tbl[chr(138)] = 'Š' ;      //     S caron
          $trans_tbl[chr(139)] = '‹' ;      //     left angle quote
          $trans_tbl[chr(140)] = 'Œ' ;      //     OE ligature
          $trans_tbl[chr(142)] = 'Ž' ;      //     Z caron
          $trans_tbl[chr(145)] = '‘' ;      //     left single quote
          $trans_tbl[chr(146)] = '’' ;      //     right single quote
          $trans_tbl[chr(147)] = '“' ;      //     left double quote
          $trans_tbl[chr(148)] = '”' ;      //     right double quote
          $trans_tbl[chr(149)] = '•' ;      //     bullet
          $trans_tbl[chr(150)] = '–' ;      //     en dash
          $trans_tbl[chr(151)] = '—' ;      //     em dash
          $trans_tbl[chr(152)] = '˜' ;      //     small tilde
          $trans_tbl[chr(153)] = '™' ;      //     trademark
          $trans_tbl[chr(154)] = 'š' ;      //     small s caron
          $trans_tbl[chr(155)] = '›' ;      //     right angle quote
          $trans_tbl[chr(156)] = 'œ' ;      //     oe ligature
          $trans_tbl[chr(158)] = 'ž' ;      //      small z caron
          $trans_tbl[chr(159)] = 'Ÿ' ;      //     Y with diaeresis
<br>
-Geoffrey

Similar Messages

  • Outlook 2010 apostrophe, single and double quotes are changes to question mark while sending mails to other internet receipient.

    We are using MS Outlook 2010 as our mail client. But we have noticed that whenevr we sent a mail to any other internet mail recipient all the "apostrophe", "single" and "double quotes" have automatically converted to ?. We have
    done almost all the workaround found in this site such as
    1.New a message and focus on the message window > click File > Options > Mail > Spelling and Autocorrect… > Proofing > AutoCorrect Options… > AutoFormat > clear the box before “Straight quotes” with “smart quotes”
    2. Used different encoding. We presently using US-ASCII for outgoing message. etc.
    Need your help to sort out these issues urgently.
    Waiting for a solution.

    Hi,
    What is your account type? IMAP, POP or Exchange?
    Send an email from the webmail, ask the recipient if this issue persists.
    As far as I know, this problem is always related to the encoding for outgoing messages, and here I suggest you try UTF-8:
    Go to File -> Options -> Advanced -> International options -> Uncheck "Automatically select encoding for outgoing messages", then select "Unicode (UTF-8)" beside "Preferred encoding for outgoing messages" -> OK.
    Hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • URGENT!! CELLWRAPPER single and double quot issues???

    REP-50003: Bad parameter:  CELLWRAPPER='I get this error whenever I try and use single or double quotes as a cellwrapper.
    However if I do [SPACE][SPACE] as a cell wrapper this works fine?Is this a bug? I'm sure we have version "10.1.2.0.2"?

    It does appear to be a bug. Look here on Metalink for details.

  • MySQL will only let me use backticks (not single or double quotes)

    What the hell is going on here? This worked fine until a recent update.
    SELECT * FROM "table";
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"table"' at line 1
    SELECT * FROM 'table';
    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''table'' at line 1
    SELECT * FROM `table`;
    (table prints normally here)
    12 rows in set (0.00 sec)
    The error happens both in the mysql client, phpmyadmin, and all my php scripts. How do I make it accept single and double quotes?
    Phpmyadmin has this to say about the mySQL installation
    Server: Localhost via UNIX socket
    Server version: 5.1.50
    Protocol version: 10
    User: root@localhost
    MySQL charset: UTF-8 Unicode (utf8)
    Last edited by Krause (2010-10-16 10:18:16)

    Hello
    In the SQL Standard, table and column names don't have to be between quotes, only values can be (for instance if you have spaces in a value).
    Just call "SELECT * FROM table;", that's all.

  • Accept apostrophe and double quote

    How can I make my web application (developed in jsp) accept both the characters: apostrophe and doule quote, in a text field?
    <input type="text" name="Name" value=""> will not accept apostrophe.
    <input type="text" name="Name" value=''> will not accept double quote.

    Hi amitads,
    I'm sure u've used Java enough. Also, u must have learned about the \ (backslash) escape character ?
    So, if u want to include a string like a single quote, u can write \' and for a double quote u can write \".
    Try this ... I'm sure it will help.
    Keep me posted.
    Cheers !!
    Sherbir.

  • What 's the difference between quote ' and double quote "?

    what's the difference between quote' and double quote "?
    when we use each one?
    Exemple of use of each case?

    'c' is a char, ie. a primitive type representing a single character
    "c" is an instance of the String class length 1.

  • Adobe Reader 9.4  won't allow saving-copying-printing of data entered into form fields.

    Hello, all.  I own a fully automated Continuing Education website with a national customer base.  The release of Adobe Reader 9.4 has brought a major problem for us which we haven't been able to overcome, and it's a critical issue which will destroy our business if the problem continues. 
    The problem:  Our professionally licensed website users earn online, instantly downloadable Continuing Education certificates in PDF file format, which are auto-generated by our software program when the user has successfully completed a course and its quiz.
    Each certificate is a template created by Adobe Acrobat Pro 6 which contains the boilerplate course goals, credit hours earned for the course, plus all of our educational approval numbers needed to conduct business in each state.  THE PROBLEM HERE is that these generated certificates ALSO have form fields which are auto-completed by our system when the user successfully completes his or her course - i.e., the user's name, his license number, and the date and hour and minute of completion.  Until some of our customers began to use Adobe Reader 9.4 on their PC this past week, the certificate generation process has performed flawlessly - for over 3 years now, for over a thousand customers - the only exception being the  occasional MAC user who needs to download the correct version of Adobe Reader, and to use the correct browser. 
    Beginning last week, site users who have downloaded 9.4 can no longer SAVE their Continuing Education certificates to their computer with their name, license and date and time of completion showing on the certificate.   And they can't even print the certificate correctly - their name, license, and date of completion appear as blank lines.  They can't download or email the certificate with the critical form field data showing on the document. This is a devastating situation for our business and for the users - who certainly won't return, and are demanding refunds. 
    In fact, I (who installed 9.4 last week) discovered that I can't even download and save an intact copy of a customer's certificate from my own website, OR copy and paste information from a client's generated certificate in order to manually create a certificate for him or her.  The on-screen message tells me that I am not allowed to do this with this document .... despite the fact that I was the creator of the document. Needless to say, when I un-installed 9.4, I had none of these problems.
    Customers wouldn't have problems either if they uninstalled 9.4 - but you can't tell customers who call in to complain, to uninstall their Adobe Reader program and find something else.  They also have to use Adobe Reader to view over half of the courses we offer, and they need to be able to work with them effectively with no problems. 
    In the past, because of occasional Adobe Reader problems of a different sort, we could tell customers to use Foxit or Nitro PDF if they had Adobe issues.  But that was back in the day when there was no competition in running an online CE website.  Now there is plenty of competition, and customers will just go elsewhere before they will try to reconfigure their computer just to stay with our site.
    I will bet that hundreds (thousands?) of other online businesses who work with system-generated form fields in PDF documents have been similarly affected.   
    Is there a solution here?  Surely this was an UNINTENDED result of  Adobe's upgrade to 9.4.   Is there something that we can do at our end to eliminate these issues?  There are NO security protections or limitations imposed on these certificate documents.  And we CANNOT eliminate the form fields that are filled internally when the customer passes t the course.  Date and time of completion and all the rest are required by all of the States which license us.  Many thanks!

    That was it!
    Thanks

  • Does anybody know any software for the Mac that I can run round robin, single and double elimination tournaments?

    Does anybody know any software for the Mac that I can run round robin, single and double elimination tournaments?  I help run tournaments but using excel for pool play and the web for bracket play, but if wifi is not available I have no way of running brackets for prize play.  Can some one help point me in the direction of software that I can use locally on my Mac Pro. 
    Thanks,
    Chris
    <E-mail Edited by Host>

    Splendid City Team Sports Scheduler, and Sports Scheduling Software System

  • Programming button for single and double click

    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.

    Nick76 wrote:
    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    Do not change the highligh and it will look like nothing is happening (make sure auto activate is not beign used)
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.
    Single and Double clicks cannot be done like that. (Some players using layered menus do require a click to get things seen but not really what you are speaking about.)
    Flash or Director may be better for this?

  • Detecting click ( single and double) on row (displayed using iterator)

    Hello All,
    I am using jdev 11.1.1.6
    I am displaying a list as below.
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    My requirement is, when user clicks on a row, that row should be detected in backend and those value will be used.
    My requirement is, On single click row should be detected(in backend/bean)
    On double click, the values is saved(in backend/bean).
    How can i detect single and double click on a particular row ?

    I have updated the code as below, single click and double click are getting detected on a row
        <af:resource type="javascript">
                function singleClick(){
                    alert("Single Click");
                function doubleClick(){
                    alert("Double Click");
        </af:resource>
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp" onclick="singleClick()" ondblclick="doubleClick()">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    Now,
    suppose i have following values for some/any row,
    value1=20, value2="abc", value3=009, value4="Language" 
    How can i retrieve these values in java script (if in backing bean then very good)

  • Doubt - mouse double click invokes both single and double click

    Hi Friends,
    I added mouse listener to a java component. In the mouseClicked() method, I have implementation for both mouse single and double click. When I try to double click that component it invokes the single click method first and the it invokes the double click method. My problem is when I try to double click that component it should invoke my double click method alone not single click too.
    I'd be very grateful if someone can help me.
    Thanks and Regards,
    Sangeetha J

    Your problem: a double click is two single clicks. The first click will always fire a single-click event. How's the computer supposed to know that another click is to follow?
    All I think you could do is to instantiate a timer in the one-click method, set to whatever amount of time you think a double-click should take. If you get a second event while the timer's still active, it was a double-click and you can stop the timer and do the double-click action. Otherwise your timer should execute the single-click action after it timed out.
    But this will make your GUI look like it's responding slowly to single-clicks.

  • Closed Quotes, single and double, are unavailable

    Does anyone have any recent issues with InDesign document not automatically inserting either a closed single or closed double quote? I have not experienced this before, and I've checked pref>type with no current doc open, I've checked multiple font just in case they could be the quirky issue, I've checked my shortcuts page under the Products:Type area, and no shortcuts are selected... Help?? Suggestions?

    Have you checked Preferences > Type WITH the current document open? If so, you might need to reset preferences.

  • Remove spaces and special characters from a form field

    Hi,
    I am tragically new to all of this, but am trying to create a form in Adobe Acrobat 9.  I am trying to use a Custom Format script to take inputs in a form field and automatically remove spaces and special characters (hyphens specifically).  For example, if a user inputs "RAN-99 06" I would like it to change to "RAN9906."  I found this script that will not let users input special characters
    if (!event.willCommit) {
        event.change = event.change.replace(/[\$#~%\*\*\^\-\(\)\+=\[\]\{\};\"\<\>\?\|\\\!]/g, "");
    And that's okay, but I can't figure out how to disallow spaces.  Also, the perference would be for a script to allow users to input the data as they like, but to clean it up after they leave the text field.
    Thanks in advance!

    From the description, I assume that the script is currently in the Keystroke event. In fact, that would be a most logical way to have it; simply ignore anything unwanted when entered.
    If you want to allow the user to enter anything, but "clean it up" when done, you would place your code in the Validate event. You will have to adjust your Regular Expression so that it works globally, but that's the whole difference. This will change the value.
    Note that you can also enter the code into the Format event. However, that would only change the visual representation of the value, but internally, the value would remain as entered.
    Hope this can help.
    Max Wyss.

  • Single to double quotes

    I'm looking for a GREP (or maybe a script) which can change the single quotes to double quotes, but taking into account that French (and Dutch) have a lot of single quotes that don't have to be converted (collega's; l'enfant;d'été...). The idea is that some people use the single quotes in stead of the double ones ('lorem ipsum daedalus inter e d'été', etc). the quote before lorem has to be changed, not the ' after the letter d, and the ' after été has to be changed too.
    Any suggestions?

    This seems to work:
    '(?![\l\u])|(?<![\l\u])'
    For my test, I turned all found items to red.

  • I'm trying to print Checks with Quicken. the print is 1/2 way across check with single and doubles

    My printer is the HP Laserjet 1102W When I load a single or double check into the manual feed vertically taken from a 81/2 x 11 sheet of checks Quicken prints so that only the date and amount show up in the middle of the check. I have used these checks for years with the manual feed on a Laserjet 4 Plus. How do I get the printing to move so that it covers the whole check?
    Howard Wexler

    Bobreba wrote:
    I am using Quicken Essentials 1.7.4 on a [Mac Pro, 2.8 Ghz Quad Core Intel Xeon with 16 Gb of memory], running 10.7.5.  I am in the process of upgrading everything to work on Yosemite and Quicken seems to be the most difficult problem to overcome.
    Thanks for your response and feedback.
    I would recommend you continue with Quicken Essentials.  As noted by others, it performs well on Yosemite.
    My personal experience is Quicken 2007 for Mac also on 10.7.5 (with many reports of it both updated and successfully running on Yosemite) and I personally would not touch Quicken Essentials with a 10 foot pole -- BUT, if it ain't broke for you, don't fix it!

Maybe you are looking for

  • Hi8 capture into FCP problem...

    FCP is not recognizing the camcorder I have connected to the computer in order capture Hi8 tapes. I believe that this setup should work, but perhaps someone knows more about it. I have a digital 8mm camcorder that plays hi8 tapes and has a firewire c

  • Buy Aironet Access point

    Hi Guys, I want to buy some Accesspoint for my company that support 50 users(they want to connet to Internet wirelessly with laptop or cellphone) could you help me ?? please say that which models I should purchase and I want to know that is (or are)

  • Material Master change with MRP profile

    Has anyone tried to change material master MRP view by assigning new MRP profile? I do not understand why the field value is not updating if the MRP profile field is defined as default but if it is define as fixed value, it is updating in MM02-assign

  • Idoc to Flat File doing Append

    Hi All, We have a scenario where we have to receive an Idoc from SAP and then map it into a flat file to a third party using FTP protocol in File adapter. The main idea is to collect all the idocs generated each day and append it into the same target

  • Error while reading

    Hi, I have two pdf that show the same problem. When I open with Adobe Reader 6.0.6 them I read two error messages: 1) "This file use a new format that this version of Acrobat doesn't support... update to new version" 2) "An error occurs while reading