Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-1323

Double-byte character is not displayed correctly in teaser carousel item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Neutral Neutral
    • 2.7.2
    • 2.7
    • templates
    • Yes

      – Repro Steps. –
      1. Edit Home Page.
      2. Select Stage > Teaser Group > Teaser Items > Teaser Group - Carousel Item, then click edit icon.
      3. Select teaser overwrite tab, then input Japanese text.

      – Problem –
      Trimming for double byte character is wrong. Garbled character displayed in teaser.
      abbreviateString method seems to be not support double byte characters.

      – Workaround –
      1. edited /templating-kit/components/teasers/carouselItem
      change the followings

      • stkfn.abbreviateString(text, 370)
      • stkfn.abbreviateString(text, 330)
        to
        text

        Acceptance criteria

          1. double-byte-japanese.png
            27 kB
            Federico Grilli
          2. garbled-char-in-carouselItem.jpg
            33 kB
            Masao Suda
          3. アジャイル株式会社_-_ホーム.png
            110 kB
            Federico Grilli

              fgrilli Federico Grilli
              mosao Masao Suda
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: