PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Double quotes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Double quotes

    Any text after a double quotes is not displayed. Single quote works fine.

  • #2
    The text is coming from the Meta descriptions of a PDF.

    Comment


    • #3
      What version of the software are you using? What script option did you select (ASP, PHP, etc). There was a recent bug in the ASP script with double quotes, which is now fixed. But this may or may not have been your problem.

      Can you give an example of what you see.

      ----
      David

      Comment


      • #4
        Version 4.1 (Build: 1001)

        PHP

        In the PDF, under Document Properties->Summary->Subject:

        Make sure due diligence is on your "to do" list for 2005.

        Then in the results page, this is displayed:

        Make sure due diligence is on your

        Comment


        • #5
          You're right. We did some tests and noticed the behaviour you reported.

          To clarify, this occurs only when you are indexing a PDF document with the "Use meta information from plugins" configuration setting enabled. If this PDF document contains double quotes in the description (set within Adobe Acrobat, via "Document Properties" -> "Summary" -> "Subject:") then the description would be wrongly truncated up to the first double quote character.

          Unfortunately, this is a bug in the PDF plugin which is an external GPL project. We will look into fixes for this in the future, but in the meantime, we recommend that you replace the double quotes with single quotes where possible.
          --Ray
          Wrensoft Web Software
          Sydney, Australia
          Zoom Search Engine

          Comment


          • #6
            We are also experiencing this with php file:

            <meta name="description" content="The FBI and other enforcement agencies use the element of surprise to obtain vital information during investigations. How can you better gear your practice for a "surprise attack"? By James B. Wieland, Esq. and Laura C. Callahan, RN, Esq. [May 2001]">

            The text will be truncated after the 1 double quotes.

            We are using V4.1 Build 1002.

            Comment


            • #7
              In your case, your PHP file is simply outputting invalid HTML, and Zoom is doing the correct thing there.

              You need to use HTML entities in place of the double quote characters within the meta description (ie. replace the " with &quot. Alternatively, you can use single quote characters to enclose your description like so:

              <meta name='description' content='The FBI and other enforcement agencies use the element of surprise to obtain vital information during investigations. How can you better gear your practice for a "surprise attack"? By James B. Wieland, Esq. and Laura C. Callahan, RN, Esq. [May 2001]'>
              --Ray
              Wrensoft Web Software
              Sydney, Australia
              Zoom Search Engine

              Comment


              • #8
                Originally posted by Ray
                You need to use HTML entities in place of the double quote characters within the meta description (ie. replace the " with &quot.
                This works. Thank you.


                Originally posted by Ray
                Alternatively, you can use single quote characters to enclose your description like so:

                <meta name='description' content='The FBI and other enforcement agencies use the element of surprise to obtain vital information during investigations. How can you better gear your practice for a "surprise attack"? By James B. Wieland, Esq. and Laura C. Callahan, RN, Esq. [May 2001]'>
                This doesn't. It won't display the content in the results.

                Comment


                • #9
                  Oops. My mistake. The "description" bit should stay as double quotes, only the content value can be in single quotes. ie:

                  <meta name="description" content='The FBI and other enforcement agencies use the element of surprise to obtain vital information during investigations. How can you better gear your practice for a "surprise attack"? By James B. Wieland, Esq. and Laura C. Callahan, RN, Esq. [May 2001]'>

                  The HTML entities (&quot is a better option however.
                  --Ray
                  Wrensoft Web Software
                  Sydney, Australia
                  Zoom Search Engine

                  Comment

                  Working...
                  X