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

    • Bug
    • Resolution: Fixed
    • Major
    • 1.45
    • 1.34
    • Panels
    • None
    • patch

    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

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

            Dates

              Created:
              Updated:
              Resolved: