How to escape the quotation mark?

I need to pass a Link Column from page 1 to page 2. I just found a bug in my program. When there is quotation mark in the string, the corresponding query cannot be displayed in page 2. However, using the same query, I can get the correct result in the SQL*Plus console. I don't know why. Is it because of the quotation mark? Thanks!

Thank you so much for your detailed explanation!
For your standard report query, I have a question
SELECT EMPNO, ENAME
FROM EMP
WHERE '"' || ENAME = :P126_TEXT
{code}
In my opinion, as long as I use <b>:P126_TEXT</b> in this query, and <b>:P126_TEXT</b> contains <b>"</b>, I will get this error:ERROR:
ORA-01740: missing double quote in identifier
Is that correct?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How can i get the correct text from a string like it show in the original source with the quotation marks in the right place ?

    The text is in hebrew so the problem is that sometimes the quotation marks not in the right place.
    For example i have this text: תווית
    על בגד: ''תן לאישה לכבס. זה תפקידה''
    This is the source original text you can see the quotations marks and they are not in the right place and all i did is copy paste.
    And this is a screenshot of how this text looks like in the website in the original:
    You can see now where the quotations marks should be.
    Now this is how i'm using the text in my program:
    First of all i'm using a webclient to download the page from the website and i'm also encoding it to windows-1255 since it's in hebrew.
    using (var webClient = new WebClient())
    webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
    byte[] myDataBuffer = webClient.DownloadData("http://rotter.net/scoopscache.html");
    page = Encoding.GetEncoding("windows-1255").GetString(myDataBuffer);
    Then i'm extracting the places i need by reading the html file lines and parsing the right text and it's link.
    string loc;
    List<string> metas = new List<string>();
    List<string> metas1 = new List<string>();
    List<string> lockedLinks1 = new List<string>();
    string text = "";
    string mys = "";
    public List<string> LockedThreads(string filename)
    lockedThreads = new List<string>();
    lockedLinks = new List<string>();
    Regex textRegex = new Regex("ToolTip.*?(?=','<)");
    string[] fall = File.ReadAllLines(filename);
    for (int i = 0; i < fall.Length; i++)
    if (fall[i].Contains("http://rotter.net") && fall[i].Contains("locked")||
    fall[i].Contains("locked_icon_general") ||
    fall[i].Contains("locked_icon_anchor") ||
    fall[i].Contains("icon_anchor") ||
    fall[i].Contains("locked_icon_fire") ||
    fall[i].Contains("locked_icon_sport") ||
    fall[i].Contains("locked_icon_camera") ||
    fall[i].Contains("locked_icon_movie"))
    Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
    foreach (Match m in linkParser.Matches(fall[i + 2]))
    if (m.Value.Contains("><b"))
    loc = m.Value.Replace("\"><b", string.Empty);
    lockedLinks.Add(loc);
    string txt = fall[i - 1];
    string text = textRegex.Match(txt).Value.Replace("ToolTip','", String.Empty);
    if (text.Contains("&rsquo;"))
    text = text.Replace("&rsquo;", string.Empty);
    lockedThreads.Add(text);
    Already here on the List lockedThreads you can see the quotation marks not in the right place as in the original:
    After i'm parsing the text and links and adding them to the Lists in another class i'm doing a comparison using this Lists:
    foreach (List<string> l_branch in ListsExtractions.responsers)
    TreeNode l_node = treeView1.Nodes.Add(l_branch[l_branch.Count - 1]);
    if (ListsExtractions.lockedThreads.Contains(l_node.Text))
    l_node.ImageIndex = 0;
    l_node.SelectedImageIndex = 0;
    for (int l_count = 0; l_count < l_branch.Count - 1; l_count++)
    TreeNode l_subnode = l_node.Nodes.Add(l_branch[l_count]);
    if (ListsExtractions.lockedThreads.Contains(l_subnode.Text))
    l_subnode.ImageIndex = 0;
    l_subnode.SelectedImageIndex = 0;
    The problem is in the line:
    if (ListsExtractions.lockedThreads.Contains(l_node.Text))
    When it's getting to the line with the quotation marks it's never equal.
    Now there are more quotation marks.
    In general the problem when comparing both text if it's having quotation marks it's not the same.
    So i have two options:
    1. To fix it somehow so the quotation marks will be the same in both variables when comparing and also the same like in the original as they show in the html page.
    2. To remove the quotation marks from both variables.
    What should i do ? And how ? I was prefer to use the original quotation marks like in the original since they have a meaning in the place they should be. The question is how can i do it ?
    This is example of the block from the html file where the text with the quotation marks is:
    <TD ALIGN="RIGHT" VALIGN="TOP">&nbsp;<font size=-1 color=#ff9933><b>9418</b></font>&nbsp;</TD></TR><TR BGCOLOR="#eeeeee">
    <TD ALIGN="RIGHT" VALIGN="TOP">
    <body onmousemove="overhere()">
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();" onmouseout="deActivate()" href="javascript:void(0)">
    <img src="http://rotter.net/forum/Images/new_locked_icon_general.gif" border="0"></a></TD><TD ALIGN="right" VALIGN="TOP" WIDTH="55%">
    <FONT CLASS='text15bn'><FONT FACE="Arial">
    <a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=189696&forum=scoops1"><b>
    <font color="898A8E">תווית על בגד: ''תן לאישה לכבס. זה תפקידה''</b>
    </a></font></TD>

    Ok, it is unclear on what is happening here.
    Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
    This is what I see the of your example text which is trying to be parse out:
    <a onmouseover="EnterContent('ToolTip','תווית על בגד: &rsquo;&rsquo;תן לאישה לכבס. זה תפקידה&rsquo;&rsquo;','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
    It appears to me that the  escapes `&rsquo;` does not have matching `&ldquo;` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
    Hence a garbage in, garbage out situation.
    William Wegerson (www.OmegaCoder.Com)

  • Slideshow Captions - How Can I Delete the Quotation Marks?

    I am creating a slideshow in Lightroom 3 using the Caption and Rating  preset.  There are no quotation marks around the metadata captions, but  when I preview the slideshow all my captions have quotation marks. I  have searched Edit>Preferences in the Slideshow module, but there is  no mention of captions or quotation marks.  How can I get rid of the  quotes?
    Thanks for any help or suggestions!
    (3 days  later:  55 people have looked at this discussion, but no one has   responded.  I'm still hoping I can delete the quotation marks around my   slideshow captions.  Any ideas out there somewhere?)

    WeeZee67 wrote:
    (3 days  later:  55 people have looked at this discussion, but no one has   responded.  I'm still hoping I can delete the quotation marks around my   slideshow captions.  Any ideas out there somewhere?)
    9 views actually...
    You will have to change the preset. Just click in the text box, then on the tool bar change Custom Settings, to Caption.
    You can then save this as a new preset.

  • How Do I Display Quotation Marks in Dynamic HTML Text

    I'm using a dynamic text file that has some Quotation Marks
    that need to be displayed with the content on certain words in the
    TXT file.
    How do i display Quotation Marks inside a Dynamic text field?
    Please Advise. As soon as possible.
    Thanks

    Try this page - it does the job for you:
    http://www.dommermuth-1.com/protosite/experiments/encode/index.html
    Otherwise search this forum for "Special and characters and
    dynamic and text"
    You'll see a couple of thread on the topic. You have to
    encode the special characters for them to display correctly.

  • How to escape the special character ' (ascii 39) in a select query?

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    friends
    thanks for ur time and effort that u gave to reply to my problem.
    But my main problem is that when my application (VC++ 7) fires the following query in the oracle database , it does not return any rows.
    SELECT count(*) FROM ORGANISATION WHERE UPPER(ORGANISATION.ORGANISATIONNAME)
    LIKE N'&#946;%' ORDER BY ORGANISATION.ORGANISATIONNAME
    the above question in the previous thread was just to check on sql plus as it's editor does not support unicode characters.

  • How to escape the special character ' (ascii 39) in a query

    Hi,
    does anybody know how to escape the special character ' (ascii 39) in a select query?
    I've tried a lot of ways but nothing seems to work, for example I try to get all
    names in table foo where coloumn name contains a '-sign (ascii 39)
    select name from foo where name like '%\'%';
    select name from foo where name like '%{'}%';
    select name from atg_horse where name like '%chr(39)%'
    ... but neither works, I end up with a ORA-01756: quoted string not properly terminated
    I would apriciate any help
    /Carl-Michael

    Use two single quotes inside your literals to represent one single quote.
    For example, this would find my name:
    SELECT *
      FROM emp
    WHERE name = 'Michael O''Neill';
    Michael O'Neill
    (acutely aware of the apostrophe issues in the world)

  • How to escape the double quote in URL

    Hi,
    I know that using backslash we can escape the ',' while sending the data between pages using URL.
    Can any body please help me how to escape the double quotes.
    Thanks a lot.

    Thanks again for the reply and now I am able to encrypt and decrypt my document number... one more question please : will it be possible to chnage the whole URL to some basic message type URL for eg:
    let's say our URL is "http://testdoc/post?mssg" and I want to change this to as "OPEN DOCUMENT" and when user clicks on ""OPEN DOCUMENT" it will still direct to the original destination that is our original URL.
    I have been told that we don;t want to maintain custom table until and unless it's our last choice.
    Thanks,
    Rajat

  • How do I replace quotation marks with double angle quotation marks, still keeping the word in the mi

    Hi,
    Does anyone know how to replace quotation marks with double angle quotation marks, still keeping the word in the middle?
    For example: I search for a word with quotation marks by typing in: (")(\w+)(") in the "find what" field. What should I type in the "change to" field?
    I'd be very grateful for answers!

    It's much simpler: find " and replace with " (make sure that 'Use typographer's quotes' is enabled in the preferences).
    Peter

  • How to use the check mark symbol in my library, how to use the check mark symbol in my library

    at times when I am moving around in my iTunes library, on windows 7 64 bit computer, i alter the check marks that are in the library. I don't know exactly how  I turn them off . ow can I deliberately turn them on & off en-mass? Is there a tutorial that would give me as much info as possible in utilising them? Thanks in advance Robert

    Ctrl-click on an empty box to check them all or vice-versa. If you don't have a use for them turn them off (Edit > Preferences > General > Show list checkboxes). I use them to make iTunes exclude stuff like bonus interview tracks from my devices and normal album playback.
    tt2

  • How to send the quotation as attachment in notification

    Hi folks,
    I have a small clarification regarding workflows. I am creating a Quotation and Iam trigering the workflow . The Workflow gets trigerred and a notification is sent to the Manager . The Manager can either Approve or reject . If Approved the status of the Quotation gets changed to Approved. if Rejected the status of the Quotation gets changed to rejected. I am also sending the sales order number.  I have achieved upto this step.
    But I am not able to send the Quotation as attachment in the notification to the Manager. The Business Object for the quotation is  BUS20001.
    Please guide me how to send attachments in notifications.
    Regards,
    Palani.

    Hi Palani,
        You can acheive this by using the step type FORM.
    Regards,
    A.Fahrudeen

  • How To Remove the Deletion MArk on Customer

    Dear all,
    I am using a customer in Test system it says message the customer marked for deletion i want to remove the mark ,How can i do that ??
    Thanks
    Sundar

    Hi
    Use T Code XD06...
    Give your
    Customer number
    Company Code
    Sales Org.
    Distr. Channel
    Division
    press enter
    Uncheck the deletion check boxes
    Problem solved
    reward if helps
    Muthu
    Edited by: Muthupandiyan on Mar 17, 2008 5:57 PM

  • How to insert single quotation marks

    Hi folks!
    I'm having problem with inserting single quotation marks (').
    I know this could be easily solved but I'm not sure what the best solution is.
    Example
    updatePackingMethod("That's it");
    will throw a sql exception:
    Syntax error (missing operator) in query expression ''that's it'
    my function is written like this
    public boolean updatePackingMethod(String packName, int id){
    String sql="Update PackMethod set PackMethodName='"+packName+"' where Id ="+ id;
    try {
    Statement stmt=conn.createStatement();
    int result=stmt.executeUpdate(sql);
    if(result>0)
    return true;
    catch (SQLException ex) {
    ex.printStackTrace();
    error.setError(ex.getMessage);
    return false;
    Any?
    /Filip

    public boolean updatePackingMethod(String packName, int id){
    String sql=" Update PackMethod set PackMethodName= ? where Id = ? ";
    PreparedStatement pstmt = null;
    try {
    pstmt = conn.prepareStatement( sql );
    // pstmt.setXXX( index, paramValue );
    // where XXX is datatype of parameter
    // index is the Nth ? (question mark) in the sql
    // paramValue is the value to be used instead of ?
    pstmt.setString( 1, packName );
    pstmt.setInt( 2, id );
    int result=pstmt.executeUpdate( );
    if(result>0)
    return true;
    catch (SQLException ex) {
    ex.printStackTrace();
    error.setError(ex.getMessage);
    } finally {
    if( pstmt != null ) pstmt.close();
    return false;

  • How to pass the Quotation Confirmation to Sales Order

    Hi All
    In our scenario (own client), we have two stages in quotation process, they are quotation creation and quotation confirmation by customer during the quotation validity period. A Sales Employee/representative creates and confirms quotation upon customer request. Once Sales employee confirms the quotation then a Sales Accountant will creates the Sales Order.
    As per our requirement the quotation confirmation will be displayed immediately and automatically in Sales Accountant Computer screen. So that sales accountant identifies the confirmed quotation and converts it into sales order.
    How can we map this scenario into SAP. Please help us to find the way in SAP, your suggestions will be highly appreciated.

    Hi
    If this SO is processed partially - i.e. transactions happened - You cant change it
    You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
    br, Ajay M
    Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM

  • How to use the "question mark" for JavaHelp?

    Normally the windows (Frame, Dialog) generated by swing don't contain a question mark. I want to provide the question mark to my java app, like I used to use it under Windows(tm)-Look&Feel.
    Is it possible to offer this option and how should the code for javahelp
    and the swing-component look like?
    Thanks a lot in advance.
    Greetings Michael

    Any Ideas?
    Greetings Michael

  • How to remove the question mark from the dock

    How do I remove the question mark from the dock.  Nothing I tried works.

    What have you tried?
    What happens when you click on it?  Does a menu appear?
    Would you provide a screen shot (SHIFT COMMAND 4).
    Ciao.

Maybe you are looking for