Uploaded image for project: '{RETIRED} XWiki Panels Application'
  1. {RETIRED} XWiki Panels Application
  2. XAPANELS-121

International and special characters do not display correctly in some panels

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.34
    • Fix Version/s: 1.45
    • Component/s: Panels
    • Labels:
      None
    • keywords:
      patch
    • Similar issues:

      Description

      I asked about this on users@xwiki.org 2010-02-02 ( What is $xwiki.getXMLEncoded()'s purpose in url names? )

      Here's a sipplet from that:
      -----------------
      On my wiki using swedish characters for xwiki page titles give ugly but
      working entries in all panels, e.g. "Backlinks" "Recent modifications" and "My
      recent modifications"

      An example is having:

      "Startsidor för våra intresseområden"
      ...instead of the correct:
      "Startsidor för våra intresseområden"

      ...
      The script responsible for for the texts in the panels is:

      #set($rdoc = $xwiki.getDocument($docname).getTranslatedDocument())
      <span class="panelitem">
      <a href="$rdoc.getURL('view')">
      $xwiki.getXMLEncoded($rdoc.displayTitle)
      </a></span>

      ------------------

      This trivial patch modifies the fourth line into just $rdoc.displayTitle, which should ensure valid xhtml content.

        Attachments

          Activity

            People

            Assignee:
            sdumitriu Sergiu Dumitriu
            Reporter:
            joel Joel F
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: